X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=http-push.c;h=00e83dcec1d973b069d4c75105aed96634b00994;hb=d3d7d47e6e0c3077fa39ffcca2b7f5f48ea97812;hp=8cc8ee0dfd5c047b2523f63346bf9b30094c1386;hpb=59773c7e583b1dcf4b63c4ee222b79cef460456b;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++; }