nc: fix SEGV on -v when NC_EXTRA is off
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 22 Nov 2010 04:30:54 +0000 (05:30 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 22 Nov 2010 04:30:54 +0000 (05:30 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/nc_bloaty.c

index 8594a67a6131e345dd7aba4569f195f393b0a831..3c622e51ecddbf208e2659949b06d23b3bf19993 100644 (file)
@@ -766,7 +766,7 @@ int nc_main(int argc UNUSED_PARAM, char **argv)
        getopt32(argv, "hnp:s:uvw:" IF_NC_SERVER("l")
                        IF_NC_EXTRA("i:o:z"),
                        &str_p, &str_s, &o_wait
-                       IF_NC_EXTRA(, &str_i, &str_o, &o_verbose));
+                       IF_NC_EXTRA(, &str_i, &str_o), &o_verbose);
        argv += optind;
 #if ENABLE_NC_EXTRA
        if (option_mask32 & OPT_i) /* line-interval time */