]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 8bef14983546a86757022e9974ddd6342ee936b0..516a62fe520887e1b015ff8e159b8027dd86b232 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);