parent
ad359d7a04
commit
0dccd8d373
@ -1005,6 +1005,8 @@ servlist_load (void)
|
|||||||
while (fgets (buf, sizeof (buf) - 2, fp))
|
while (fgets (buf, sizeof (buf) - 2, fp))
|
||||||
{
|
{
|
||||||
len = strlen (buf);
|
len = strlen (buf);
|
||||||
|
if (!len)
|
||||||
|
continue;
|
||||||
buf[len] = 0;
|
buf[len] = 0;
|
||||||
buf[len-1] = 0; /* remove the trailing \n */
|
buf[len-1] = 0; /* remove the trailing \n */
|
||||||
if (net)
|
if (net)
|
||||||
|
Loading…
Reference in New Issue
Block a user