Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
strbuf: use valid pointer in strbuf_remove()
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index 2c08dbb15381351ede663c1d41ebf3b6838a0c12..e554f1f38c2a49d5a2d7bc42cb9b65745276f08d 100644
(file)
--- 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)