projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41cb696
)
Fix crash when running unknown command via symlink.
author
Rob Landley
<rob@landley.net>
Tue, 22 Jan 2008 21:33:50 +0000
(15:33 -0600)
committer
Rob Landley
<rob@landley.net>
Tue, 22 Jan 2008 21:33:50 +0000
(15:33 -0600)
(The error message was trying to print an uninitialied field. Oops.)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
d9408f3
..
18daafb
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-92,6
+92,7
@@
void toybox_main(void)
if (toys.argv[1]) {
if (toys.argv[1][0]!='-') {
toy_exec(toys.argv+1);
+ toys.which = toy_list;
error_exit("Unknown command %s",toys.argv[1]);
}
}