Re: [PATCH 02/13] remove_branches(): remove temporary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 8, 2015 at 4:45 AM, Michael Haggerty <mhagger@xxxxxxxxxxxx> wrote:
> Signed-off-by: Michael Haggerty <mhagger@xxxxxxxxxxxx>

Found-to-be-Obviously-Correct-by: Stefan Beller <sbeller@xxxxxxxxxx> ;)
> ---
>  builtin/remote.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/builtin/remote.c b/builtin/remote.c
> index f4a6ec9..53b8e13 100644
> --- a/builtin/remote.c
> +++ b/builtin/remote.c
> @@ -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);
> --
> 2.1.4
>
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]