Skip to content
Snippets Groups Projects
Commit 01cbd9ea authored by Junio C Hamano's avatar Junio C Hamano
Browse files

Merge branch 'bw/refspec-api'

Hotfix.

* bw/refspec-api:
  refspec-api: avoid uninitialized field in refspec item
parents 7fe48cb3 c3072c6e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -49,6 +49,8 @@ static int parse_refspec(struct refspec_item *item, const char *refspec, int fet
size_t rlen = strlen(++rhs);
is_glob = (1 <= rlen && strchr(rhs, '*'));
item->dst = xstrndup(rhs, rlen);
} else {
item->dst = NULL;
}
 
llen = (rhs ? (rhs - lhs - 1) : strlen(lhs));
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment