aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/other/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/ifconfig.c b/toys/other/ifconfig.c
index 36529c95..2542d791 100644
--- a/toys/other/ifconfig.c
+++ b/toys/other/ifconfig.c
@@ -395,7 +395,7 @@ void ifconfig_main(void)
ptr = p = (char *)sock->sa_data;
memset(sock, 0, sizeof(struct sockaddr));
- if (!argv[1]) {
+ if (argv[1]) {
if (!strcmp("ether", *++argv)) sock->sa_family = ARPHRD_ETHER;
else if (!strcmp("infiniband", *argv)) {
sock->sa_family = ARPHRD_INFINIBAND;