diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-21 23:49:06 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-21 23:49:06 +0200 |
commit | 8050a5b98a3003c2a4bed39b896b4a3a4c1068c0 (patch) | |
tree | bb0be233efcf1052125862812569ce3874b4d9d0 /lib/inifile | |
parent | Bug and crash fixes (diff) | |
download | cuberite-8050a5b98a3003c2a4bed39b896b4a3a4c1068c0.tar cuberite-8050a5b98a3003c2a4bed39b896b4a3a4c1068c0.tar.gz cuberite-8050a5b98a3003c2a4bed39b896b4a3a4c1068c0.tar.bz2 cuberite-8050a5b98a3003c2a4bed39b896b4a3a4c1068c0.tar.lz cuberite-8050a5b98a3003c2a4bed39b896b4a3a4c1068c0.tar.xz cuberite-8050a5b98a3003c2a4bed39b896b4a3a4c1068c0.tar.zst cuberite-8050a5b98a3003c2a4bed39b896b4a3a4c1068c0.zip |
Diffstat (limited to 'lib/inifile')
-rw-r--r-- | lib/inifile/iniFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inifile/iniFile.cpp b/lib/inifile/iniFile.cpp index 30f93e5a3..2bf6c91ed 100644 --- a/lib/inifile/iniFile.cpp +++ b/lib/inifile/iniFile.cpp @@ -585,7 +585,7 @@ Int64 cIniFile::GetValueSetI(const AString & keyname, const AString & valuename, AString Data; Printf(Data, "%lld", defValue); AString resultstring = GetValueSet(keyname, valuename, Data); - Int64 result; + Int64 result = defValue; #ifdef _WIN32 sscanf_s(resultstring.c_str(), "%lld", &result); #else |