summaryrefslogtreecommitdiff
path: root/networking/nc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/nc.c')
-rw-r--r--networking/nc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nc.c b/networking/nc.c
index 705b735..d351bf7 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -216,7 +216,7 @@ int nc_main(int argc, char **argv)
close(sfd);
} else {
cfd = create_and_connect_stream_or_die(argv[0],
- argv[1] ? bb_lookup_port(argv[1], "tcp", 0) : 0);
+ bb_lookup_port(argv[1], "tcp", 0));
}
}