remove_branches(): remove temporary
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 Jun 2015 14:02:53 +0000 (16:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jun 2015 20:17:08 +0000 (13:17 -0700)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
index f4a6ec9f138bcfe3b2519412fa70c289a0024fb5..53b8e13975721d59900dbcc98b0218f9594f1256 100644 (file)
@@ -756,8 +756,7 @@ static int remove_branches(struct string_list *branches)
        strbuf_release(&err);
 
        for (i = 0; i < branches->nr; i++) {
-               struct string_list_item *item = branches->items + i;
-               const char *refname = item->string;
+               const char *refname = branches->items[i].string;
 
                if (delete_ref(refname, NULL, 0))
                        result |= error(_("Could not remove branch %s"), refname);