X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fstring-map.c;h=e3a81b4fe1457a030154fb3cb05cfc59cd3bb059;hb=8aeba1228ace947c1b689ae6ae08db5d53755917;hp=71eac6349a896ef49fe1cbfea3378a308951e1a4;hpb=97fadd0645e908ff8322577a983dc710bfda33d6;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); } }