aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/arp.c b/networking/arp.c
index fd418cc3f..872d44b0b 100644
--- a/networking/arp.c
+++ b/networking/arp.c
@@ -408,7 +408,7 @@ static int arp_show(char *name)
408 continue; 408 continue;
409 409
410 /* if the user specified device differs, skip it */ 410 /* if the user specified device differs, skip it */
411 if (device && strcmp(dev, device) != 0) 411 if (device[0])
412 continue; 412 continue;
413 413
414 shown++; 414 shown++;
@@ -432,7 +432,7 @@ static int arp_show(char *name)
432 entries, entries - shown, shown); 432 entries, entries - shown, shown);
433 433
434 if (!shown) { 434 if (!shown) {
435 if (hw_set || host[0] || device) 435 if (hw_set || host[0] || device[0])
436 printf("No match found in %d entries\n", entries); 436 printf("No match found in %d entries\n", entries);
437 } 437 }
438 438