command.c: Fix om_help().
authorAndre Noll <maan@systemlinux.org>
Sat, 15 Sep 2007 07:16:05 +0000 (09:16 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 15 Sep 2007 07:16:05 +0000 (09:16 +0200)
It segfaulted due to a missing return statement.

command.c

index 8bef149..516a62f 100644 (file)
--- a/command.c
+++ b/command.c
@@ -499,7 +499,7 @@ int com_help(int fd, int argc, char * const * argv)
                if (ret < 0)
                        return ret;
                cmd = afs_cmds;
-               ret = send_list_of_commands(fd, cmd, "afs");
+               return send_list_of_commands(fd, cmd, "afs");
        }
        /* argument given for help */
        cmd = get_cmd_ptr(argv[1], &handler);