aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/libstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp
index d086c5cde..076b55fcf 100644
--- a/src/libstate/libstate.cpp
+++ b/src/libstate/libstate.cpp
@@ -130,7 +130,7 @@ bool Library_State::is_set(const std::string& section,
{
Mutex_Holder lock(config_lock);
- return search_map(config, section + "/" + key, false, true);
+ return config.count(section + "/" + key) != 0;
}
/*