projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26df70a
)
Fix segfault when cleaning up
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 27 Apr 2003 02:22:01 +0000
(
02:22
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sun, 27 Apr 2003 02:22:01 +0000
(
02:22
-0000)
findutils/grep.c
patch
|
blob
|
history
diff --git
a/findutils/grep.c
b/findutils/grep.c
index 908f39123d3d5d83a6be2a99a572caabdce8e44f..e26a8d5ad8872837ac2607746f79593b6e2cccc2 100644
(file)
--- 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++;
}
}