From 0dccd8d3731fb136352c3f92c02cc1822cfcab45 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sun, 28 May 2017 12:46:26 +0200 Subject: [PATCH] servlist: skip empty lines. Fixes #1999 --- src/common/servlist.c | 2 ++ 1 file changed, 2 insertions(+) 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)