summaryrefslogtreecommitdiff
path: root/strbuf.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-09-29 23:49:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-29 23:49:35 (GMT)
commitb0af4819938761654050d934c12c244c2de629be (patch)
tree9289cd18858b689570d5c487ee56847933cfe180 /strbuf.c
parent3a3bb36514921bd5d5f2fc04af3e657b3b071d83 (diff)
parenta8342a417e48385f7ebc19ab46a940ea1fa060ae (diff)
downloadgit-b0af4819938761654050d934c12c244c2de629be.zip
git-b0af4819938761654050d934c12c244c2de629be.tar.gz
git-b0af4819938761654050d934c12c244c2de629be.tar.bz2
Merge branch 'rs/strbuf-remove-fix' into maint
Code cleanup. * rs/strbuf-remove-fix: strbuf: use valid pointer in strbuf_remove()
Diffstat (limited to 'strbuf.c')
-rw-r--r--strbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strbuf.c b/strbuf.c
index f3bd571..b839be4 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -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)