summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/servlist.c2
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)