summaryrefslogtreecommitdiff
path: root/core/vmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/vmap.h')
-rw-r--r--core/vmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/vmap.h b/core/vmap.h
index fde9723d71..ed66b46993 100644
--- a/core/vmap.h
+++ b/core/vmap.h
@@ -196,8 +196,7 @@ public:
int pos = _find_exact(p_key);
if (pos < 0) {
- V val;
- pos = insert(p_key, val);
+ pos = insert(p_key, V());
}
return _cowdata.get_m(pos).value;