comparison main.c @ 241:4121825716b8

Fix crash when running unknown command via symlink. (The error message was trying to print an uninitialied field. Oops.)
author Rob Landley <rob@landley.net>
date Tue, 22 Jan 2008 15:33:50 -0600
parents 7cb15eae1664
children 951110c37fee
comparison
equal deleted inserted replaced
240:362e7550a1c4 241:4121825716b8
90 int i, len = 0; 90 int i, len = 0;
91 91
92 if (toys.argv[1]) { 92 if (toys.argv[1]) {
93 if (toys.argv[1][0]!='-') { 93 if (toys.argv[1][0]!='-') {
94 toy_exec(toys.argv+1); 94 toy_exec(toys.argv+1);
95 toys.which = toy_list;
95 error_exit("Unknown command %s",toys.argv[1]); 96 error_exit("Unknown command %s",toys.argv[1]);
96 } 97 }
97 } 98 }
98 99
99 // Output list of applets. 100 // Output list of applets.