From: Johannes Schindelin Date: Thu, 10 Sep 2009 15:24:00 GMT Subject: Re: [PATCH] Introduce @{tracked} as shortcut to the tracked branch Message-ID: In-Reply-To: <20090910142628.GA7275@coredump.intra.peff.net> Hi, On Thu, 10 Sep 2009, Jeff King wrote: > On Thu, Sep 10, 2009 at 10:16:18AM -0400, Jeff King wrote: > > diff --git a/sha1_name.c b/sha1_name.c > index a886846..ef4ec11 100644 > --- a/sha1_name.c > +++ b/sha1_name.c > @@ -276,7 +276,7 @@ static char *substitute_branch_name(const char **string, int *len) > struct branch *tracking = branch_get(*ref ? ref : NULL); > > free(ref); > - if (tracking->merge && tracking->merge[0]->dst) { > + if (tracking && tracking->merge && tracking->merge[0]->dst) { Almost. My version dies if tracking is NULL. Ciao, Dscho