summaryrefslogtreecommitdiffstats
path: root/ahl-binding/ahl-binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ahl-binding/ahl-binding.cpp')
-rw-r--r--ahl-binding/ahl-binding.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ahl-binding/ahl-binding.cpp b/ahl-binding/ahl-binding.cpp
index 2bf1664..37e6847 100644
--- a/ahl-binding/ahl-binding.cpp
+++ b/ahl-binding/ahl-binding.cpp
@@ -330,6 +330,8 @@ int ahl_binding_t::parse_roles_config(json_object* o)
{
assert(o != nullptr);
assert(json_object_is_type(o, json_type_array));
+
+ if (roles_.size()) return 0; // Roles already added, ignore.
size_t count = json_object_array_length(o);
roles_.reserve(count);