From 2e7c1f307389d838957cb2417f28b1814c34c8da Mon Sep 17 00:00:00 2001 From: tarek_saidi Date: Thu, 18 May 2006 21:50:23 +0000 Subject: [PATCH] Fixed crash when parsing config file under Win32 git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@89 b624d157-de02-0410-bad0-e51aec6abb33 --- src/lib/IniReader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/IniReader.cpp b/src/lib/IniReader.cpp index 871f55a..e6ccf00 100755 --- a/src/lib/IniReader.cpp +++ b/src/lib/IniReader.cpp @@ -57,6 +57,7 @@ bool CIniFile::ReadFile() // Note that the '\r' will be written to INI files from // Unix so that the created INI file can be read under Win32 // without change. + if( !line.length())continue; if ( line[line.length() - 1] == '\r') line = line.substr( 0, line.length() - 1);