
git-svn-id: svn://svn.openwrt.org/openwrt/packages@14542 3c298f89-4303-0410-b956-a3cf2f4a3e73
13 lines
392 B
Diff
13 lines
392 B
Diff
--- ./src/main.c.orig 2009-02-02 02:04:11.000000000 +0100
|
|
+++ ./src/main.c 2009-02-17 19:48:55.000000000 +0100
|
|
@@ -190,7 +190,8 @@
|
|
static struct command *
|
|
find_command(const char *name)
|
|
{
|
|
- for (unsigned i = 0; mpc_table[i].command != NULL; ++i)
|
|
+ unsigned i = 0;
|
|
+ for (i = 0; mpc_table[i].command != NULL; ++i)
|
|
if (strcmp(name, mpc_table[i].command) == 0)
|
|
return &mpc_table[i];
|
|
|