Merge branch 'bw/refspec-api'
Hotfix. * bw/refspec-api: refspec-api: avoid uninitialized field in refspec itemmaint
commit
01cbd9eab5
|
@ -49,6 +49,8 @@ static int parse_refspec(struct refspec_item *item, const char *refspec, int fet
|
||||||
size_t rlen = strlen(++rhs);
|
size_t rlen = strlen(++rhs);
|
||||||
is_glob = (1 <= rlen && strchr(rhs, '*'));
|
is_glob = (1 <= rlen && strchr(rhs, '*'));
|
||||||
item->dst = xstrndup(rhs, rlen);
|
item->dst = xstrndup(rhs, rlen);
|
||||||
|
} else {
|
||||||
|
item->dst = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
llen = (rhs ? (rhs - lhs - 1) : strlen(lhs));
|
llen = (rhs ? (rhs - lhs - 1) : strlen(lhs));
|
||||||
|
|
Loading…
Reference in New Issue