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
Branches
Tags
No related merge requests found
......@@ -205,6 +205,7 @@ int map_set(map_t *map, const char *str, void *value)
newotherbits = data->key[newbyte];
goto different_byte_found;
}
data->value = value;
return 1;
different_byte_found:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment