summaryrefslogtreecommitdiff
path: root/Source/Core/Common/IniFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/IniFile.h')
-rw-r--r--Source/Core/Common/IniFile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/IniFile.h b/Source/Core/Common/IniFile.h
index 6f16d74306..ed20cd6fa0 100644
--- a/Source/Core/Common/IniFile.h
+++ b/Source/Core/Common/IniFile.h
@@ -123,6 +123,8 @@ public:
{
if (Exists(sectionName, key))
return GetOrCreateSection(sectionName)->Get(key, value, defaultValue);
+ else
+ *value = defaultValue;
return false;
}