Skip to content

Commit 3ba0bbb

Browse files
committed
Merge branch 'rs/strbuf-remove-fix'
Code cleanup. * rs/strbuf-remove-fix: strbuf: use valid pointer in strbuf_remove()
2 parents ee19836 + a8342a4 commit 3ba0bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void strbuf_insert(struct strbuf *sb, size_t pos, const void *data, size_t len)
187187

188188
void strbuf_remove(struct strbuf *sb, size_t pos, size_t len)
189189
{
190-
strbuf_splice(sb, pos, len, NULL, 0);
190+
strbuf_splice(sb, pos, len, "", 0);
191191
}
192192

193193
void strbuf_add(struct strbuf *sb, const void *data, size_t len)

0 commit comments

Comments
 (0)