Fixing return code of isp_handle_command()
authorNathael Pajani <nathael.pajani@ed3l.fr>
Sun, 15 Apr 2012 21:37:47 +0000 (23:37 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Sun, 15 Apr 2012 21:37:47 +0000 (23:37 +0200)
isp_commands.c

index f269da9..2183241 100644 (file)
@@ -532,7 +532,7 @@ int isp_handle_command(char* cmd, int arg_count, char** args)
        if (arg_count != isp_cmds_list[cmd_found].nb_args) {
                isp_warn_trailing_args(cmd_found, arg_count, args);
        }
-       isp_cmds_list[cmd_found].handler(arg_count, args);
+       ret = isp_cmds_list[cmd_found].handler(arg_count, args);
        
        if (cmd_found == -1) {
                printf("Unknown command \"%s\", use -h or --help for a list.\n", cmd);