summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/getnameinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/getnameinfo.c b/src/network/getnameinfo.c
index 2ba66e33..3484fc69 100644
--- a/src/network/getnameinfo.c
+++ b/src/network/getnameinfo.c
@@ -96,7 +96,7 @@ static void reverse_services(char *buf, int port, int dgram)
if ((p=strchr(line, '#'))) *p++='\n', *p=0;
for (p=line; *p && !isspace(*p); p++);
- if (!p) continue;
+ if (!*p) continue;
*p++ = 0;
svport = strtoul(p, &z, 10);