Skip to content
Snippets Groups Projects
Commit 5fdfd082 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix failing ConfigTest"

parents 1c742029 7d33843f
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,7 @@ int config_get_int(const config_t& config, const std::string& section, ...@@ -110,7 +110,7 @@ int config_get_int(const config_t& config, const std::string& section,
if (!entry) return def_value; if (!entry) return def_value;
size_t endptr; size_t endptr;
int ret = stoi(entry->value, &endptr); int ret = stoi(entry->value, &endptr, 0);
return (endptr == entry->value.size()) ? ret : def_value; return (endptr == entry->value.size()) ? ret : def_value;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment