openbsd-ports/net/amule/patches/patch-src_ServerList_cpp
dcoppa f80cb601ab Bugfix: CServerList::LoadStaticServers() failed on empty lines
(upstream git commit e298b38e9ce22e2861d34c5d7f6e7b2e009476b1)

Fix loading of zipped IP filter files
(upstream git commit ab24e8375c23c586de837a9cb7a405ca0499ffde)
2012-01-12 11:30:45 +00:00

17 lines
576 B
Plaintext

$OpenBSD: patch-src_ServerList_cpp,v 1.1 2012/01/12 11:30:45 dcoppa Exp $
Bugfix: CServerList::LoadStaticServers() failed on empty lines
(upstream git commit e298b38e9ce22e2861d34c5d7f6e7b2e009476b1)
--- src/ServerList.cpp.orig Wed Jan 11 16:34:34 2012
+++ src/ServerList.cpp Wed Jan 11 16:35:21 2012
@@ -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;
}