X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fstring-map.c;h=e3a81b4fe1457a030154fb3cb05cfc59cd3bb059;hb=a9f74aeeb9ade477d5b80c1c2700945d6c50adb1;hp=71eac6349a896ef49fe1cbfea3378a308951e1a4;hpb=4c79a2dabe38ac72eb9eb21620f2ffca5f1885c6;p=notmuch diff --git a/lib/string-map.c b/lib/string-map.c index 71eac634..e3a81b4f 100644 --- a/lib/string-map.c +++ b/lib/string-map.c @@ -154,10 +154,10 @@ _notmuch_string_map_set (notmuch_string_map_t *map, _notmuch_string_map_sort (map); pair = bsearch_first (map->pairs, map->length, key, true); if (! pair) - _notmuch_string_map_append (map, key, val); + _notmuch_string_map_append (map, key, val); else { - talloc_free (pair->value); - pair->value = talloc_strdup (map->pairs, val); + talloc_free (pair->value); + pair->value = talloc_strdup (map->pairs, val); } }