summaryrefslogtreecommitdiff
path: root/strmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'strmap.c')
-rw-r--r--strmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/strmap.c b/strmap.c
index 4fb9f6100e..ee48635708 100644
--- a/strmap.c
+++ b/strmap.c
@@ -25,7 +25,8 @@ static struct strmap_entry *find_strmap_entry(struct strmap *map,
void strmap_init(struct strmap *map)
{
- strmap_init_with_options(map, NULL, 1);
+ struct strmap blank = STRMAP_INIT;
+ memcpy(map, &blank, sizeof(*map));
}
void strmap_init_with_options(struct strmap *map,