Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bw/refspec-api'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 4 Jun 2018 12:39:50 +0000
(21:39 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 4 Jun 2018 12:39:50 +0000
(21:39 +0900)
Hotfix.
* bw/refspec-api:
refspec-api: avoid uninitialized field in refspec item
refspec.c
patch
|
blob
|
history
raw
(from parent 1:
7fe48cb
)
diff --git
a/refspec.c
b/refspec.c
index ada7854f7a6a55a783cf90574e1d759f5c3a661f..78edc48ae8eebcfdbfd87172e7ef4ead6c3fff85 100644
(file)
--- a/
refspec.c
+++ b/
refspec.c
@@
-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));