diff options
Diffstat (limited to 'usr.bin/xargs/xargs.c')
-rw-r--r-- | usr.bin/xargs/xargs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index e37a7e4..832e999 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -454,10 +454,10 @@ prerun(int argc, char **argv) free(tmp2); /* - * Free the input line buffer, and create a new dummy. + * Free the input line buffer, if we have one. */ - free(inpline); - inpline = strdup(""); + if (inpline != NULL) + free(inpline); } static void |