diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-29 16:49:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-29 16:49:35 -0700 |
commit | b0af4819938761654050d934c12c244c2de629be (patch) | |
tree | 9289cd18858b689570d5c487ee56847933cfe180 | |
parent | Merge branch 'rs/checkout-some-states-are-const' into maint (diff) | |
parent | strbuf: use valid pointer in strbuf_remove() (diff) | |
download | tgif-b0af4819938761654050d934c12c244c2de629be.tar.xz |
Merge branch 'rs/strbuf-remove-fix' into maint
Code cleanup.
* rs/strbuf-remove-fix:
strbuf: use valid pointer in strbuf_remove()
-rw-r--r-- | strbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -187,7 +187,7 @@ void strbuf_insert(struct strbuf *sb, size_t pos, const void *data, size_t len) void strbuf_remove(struct strbuf *sb, size_t pos, size_t len) { - strbuf_splice(sb, pos, len, NULL, 0); + strbuf_splice(sb, pos, len, "", 0); } void strbuf_add(struct strbuf *sb, const void *data, size_t len) |