X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=mailmap.c;fp=mailmap.c;h=f80b701292f0d852950735ab20a63dac13e92362;hb=e8c8b7139c87c3e3017d3bff07f91c4349850d58;hp=8b6dc36bbc54bf8c4606ad9ecf03b8cdcc8f9dac;hpb=aadceea641806b363ca555ffdc04109ea716c497;p=git.git diff --git a/mailmap.c b/mailmap.c index 8b6dc36bb..f80b70129 100644 --- a/mailmap.c +++ b/mailmap.c @@ -214,13 +214,13 @@ int map_user(struct string_list *map, mailbuf[i] = 0; debug_mm("map_user: map '%s' <%s>\n", name, mailbuf); - item = string_list_lookup(mailbuf, map); + item = string_list_lookup(map, mailbuf); if (item != NULL) { me = (struct mailmap_entry *)item->util; if (me->namemap.nr) { /* The item has multiple items, so we'll look up on name too */ /* If the name is not found, we choose the simple entry */ - struct string_list_item *subitem = string_list_lookup(name, &me->namemap); + struct string_list_item *subitem = string_list_lookup(&me->namemap, name); if (subitem) item = subitem; }