X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http-push.c;h=00e83dcec1d973b069d4c75105aed96634b00994;hb=1c92a08f286453bd28a1f6153249b2e2cf63cb38;hp=8cc8ee0dfd5c047b2523f63346bf9b30094c1386;hpb=725cf7b45da1f983fa1cbb0757b0e8855e5ac2de;p=git.git diff --git a/http-push.c b/http-push.c index 8cc8ee0df..00e83dcec 100644 --- a/http-push.c +++ b/http-push.c @@ -193,6 +193,8 @@ static char *xml_entities(char *s) case '&': strbuf_addstr(&buf, "&"); break; + case 0: + return strbuf_detach(&buf, NULL); } s++; }