X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote.c;h=ade04246e06ebe52074888790486e88108bc1d76;hb=176959d7423988183ffbe1b35fc1de7f786bb596;hp=c70181cdc621b27ed02aba17b3e4f7ab64518e9f;hpb=225f78c817755bebff91629cc525a258cf60eaea;p=git.git diff --git a/remote.c b/remote.c index c70181cdc..ade04246e 100644 --- a/remote.c +++ b/remote.c @@ -657,10 +657,9 @@ static struct refspec *parse_refspec_internal(int nr_refspec, const char **refsp int valid_fetch_refspec(const char *fetch_refspec_str) { - const char *fetch_refspec[] = { fetch_refspec_str }; struct refspec *refspec; - refspec = parse_refspec_internal(1, fetch_refspec, 1, 1); + refspec = parse_refspec_internal(1, &fetch_refspec_str, 1, 1); free_refspecs(refspec, 1); return !!refspec; }