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
This commit is contained in:
parent
169dc74c0f
commit
2e7c1f3073
|
@ -57,6 +57,7 @@ bool CIniFile::ReadFile()
|
||||||
// Note that the '\r' will be written to INI files from
|
// Note that the '\r' will be written to INI files from
|
||||||
// Unix so that the created INI file can be read under Win32
|
// Unix so that the created INI file can be read under Win32
|
||||||
// without change.
|
// without change.
|
||||||
|
if( !line.length())continue;
|
||||||
if ( line[line.length() - 1] == '\r')
|
if ( line[line.length() - 1] == '\r')
|
||||||
line = line.substr( 0, line.length() - 1);
|
line = line.substr( 0, line.length() - 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue