summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/re3.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index 6bf5573e..4783e513 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -86,7 +86,8 @@ CustomFrontendOptionsPopulate(void)
linb::ini cfg;
int CheckAndReadIniInt(const char *cat, const char *key, int original)
{
- const char *value = (cfg.get(cat, key, "").c_str());
+ std::string strval = cfg.get(cat, key, "");
+ const char *value = strval.c_str();
if (value && value[0] != '\0')
return atoi(value);
@@ -95,7 +96,8 @@ int CheckAndReadIniInt(const char *cat, const char *key, int original)
float CheckAndReadIniFloat(const char *cat, const char *key, float original)
{
- const char *value = (cfg.get(cat, key, "").c_str());
+ std::string strval = cfg.get(cat, key, "");
+ const char *value = strval.c_str();
if (value && value[0] != '\0')
return atof(value);