aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-04-27 02:22:01 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-04-27 02:22:01 +0000
commit35ccbb3aedb5fcda1009eb16b0f7314b46938a77 (patch)
tree829c5e060e2befdd58350f9ae3874e00f91a2977 /findutils
parent283455d82a44abe994a5f47ec3d8d8aa9097dea0 (diff)
downloadbusybox-w32-35ccbb3aedb5fcda1009eb16b0f7314b46938a77.tar.gz
busybox-w32-35ccbb3aedb5fcda1009eb16b0f7314b46938a77.tar.bz2
busybox-w32-35ccbb3aedb5fcda1009eb16b0f7314b46938a77.zip
Fix segfault when cleaning up
git-svn-id: svn://busybox.net/trunk/busybox@6819 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'findutils')
-rw-r--r--findutils/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 908f39123..e26a8d5ad 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -343,7 +343,7 @@ extern int grep_main(int argc, char **argv)
343 if (argv[optind] == NULL) 343 if (argv[optind] == NULL)
344 bb_show_usage(); 344 bb_show_usage();
345 else { 345 else {
346 pattern_head = llist_add_to(pattern_head, argv[optind]); 346 pattern_head = llist_add_to(pattern_head, strdup(argv[optind]));
347 optind++; 347 optind++;
348 } 348 }
349 } 349 }