Skip to content
Snippets Groups Projects
Commit 8f5d36ed authored by Marek Vavruša's avatar Marek Vavruša
Browse files

lib/generic: replace value on map insert if exists

parent ac6b0755
No related branches found
No related tags found
No related merge requests found
...@@ -205,6 +205,7 @@ int map_set(map_t *map, const char *str, void *value) ...@@ -205,6 +205,7 @@ int map_set(map_t *map, const char *str, void *value)
newotherbits = data->key[newbyte]; newotherbits = data->key[newbyte];
goto different_byte_found; goto different_byte_found;
} }
data->value = value;
return 1; return 1;
different_byte_found: different_byte_found:
......
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