diff options
author | Glenn L McGrath | 2003-04-27 02:22:01 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-04-27 02:22:01 +0000 |
commit | c5408fe7f7ed809f11dd406a403071715cc9bd06 (patch) | |
tree | 829c5e060e2befdd58350f9ae3874e00f91a2977 /findutils/grep.c | |
parent | 26df70a823dd0c8c451776c9b86f68b6d4bc3c75 (diff) | |
download | busybox-c5408fe7f7ed809f11dd406a403071715cc9bd06.zip busybox-c5408fe7f7ed809f11dd406a403071715cc9bd06.tar.gz |
Fix segfault when cleaning up
Diffstat (limited to 'findutils/grep.c')
-rw-r--r-- | findutils/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 908f391..e26a8d5 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -343,7 +343,7 @@ extern int grep_main(int argc, char **argv) if (argv[optind] == NULL) bb_show_usage(); else { - pattern_head = llist_add_to(pattern_head, argv[optind]); + pattern_head = llist_add_to(pattern_head, strdup(argv[optind])); optind++; } } |