diff options
-rw-r--r-- | src/common/servlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/servlist.c b/src/common/servlist.c index 5e9192ea..53e02bf2 100644 --- a/src/common/servlist.c +++ b/src/common/servlist.c @@ -1005,6 +1005,8 @@ servlist_load (void) while (fgets (buf, sizeof (buf) - 2, fp)) { len = strlen (buf); + if (!len) + continue; buf[len] = 0; buf[len-1] = 0; /* remove the trailing \n */ if (net) |