aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/map.c b/map.c
index cff659e..48590b3 100644
--- a/map.c
+++ b/map.c
@@ -113,6 +113,7 @@ bool map_put(Map *map, const char *k, const void *value)
if (key[byte_num] == '\0') {
/* All identical! */
free(key);
+ errno = EEXIST;
return false;
}
}