diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-21 15:15:25 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-21 15:15:25 -0700 |
commit | 3ba0bbb901c6fdb092944bced927a10a1ed25bf5 (patch) | |
tree | 9d78fe79b239e3296cc86cff2ce8264849c8bbd4 /strbuf.c | |
parent | ee198369950023a49cb383951794e0263b6a8446 (diff) | |
parent | a8342a417e48385f7ebc19ab46a940ea1fa060ae (diff) | |
download | git-3ba0bbb901c6fdb092944bced927a10a1ed25bf5.tar.gz |
Merge branch 'rs/strbuf-remove-fix'
Code cleanup.
* rs/strbuf-remove-fix:
strbuf: use valid pointer in strbuf_remove()
Diffstat (limited to 'strbuf.c')
-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) |