diff options
author | ru <ru@FreeBSD.org> | 2003-03-05 15:53:18 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-03-05 15:53:18 +0000 |
commit | 45fb378af936b946a5090a94a2c62774987d24c1 (patch) | |
tree | 8aa4a2ceb6adc552c25534f20f0503be8e573006 /usr.sbin | |
parent | fd018b2fba2125e438fef94277c85b091d75b1e9 (diff) | |
download | FreeBSD-src-45fb378af936b946a5090a94a2c62774987d24c1.zip FreeBSD-src-45fb378af936b946a5090a94a2c62774987d24c1.tar.gz |
Further fix the syntax by ignoring empty and whitespace-only lines.
Prompted by: Eugene Grosbein <eugen@kuzbass.ru>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/arp/arp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index d9509ae..d1bf4da 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -234,7 +234,7 @@ file(char *name) if ((p = strchr(line, '#')) != NULL) *p = '\0'; for (p = line; isblank(*p); p++); - if (*p == '\0') + if (*p == '\n' || *p == '\0') continue; i = sscanf(p, "%49s %49s %49s %49s %49s", arg[0], arg[1], arg[2], arg[3], arg[4]); |