From e298b38e9ce22e2861d34c5d7f6e7b2e009476b1 Mon Sep 17 00:00:00 2001 From: upstream svn Date: Tue, 27 Dec 2011 20:47:08 +0000 Subject: [PATCH] Fix: CServerList::LoadStaticServers() failed on empty lines --- .svn-revision | 2 +- src/ServerList.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.svn-revision b/.svn-revision index 0a29e80c..63040220 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -10703 +10708 diff --git a/src/ServerList.cpp b/src/ServerList.cpp index cb1fcf4e..eebe1adc 100644 --- a/src/ServerList.cpp +++ b/src/ServerList.cpp @@ -455,7 +455,7 @@ void CServerList::LoadStaticServers() wxString line = f.ReadLine(); // Skip comments - if ( line.GetChar(0) == '#' || line.GetChar(0) == '/') { + if (line.IsEmpty() || line.GetChar(0) == '#' || line.GetChar(0) == '/') { continue; } -- 2.11.4.GIT