xdiff/xhistogram: move index allocation into find_lcs
[gitweb.git] / strbuf.c
index f3bd5719c636d10780e466e39f1145375c4cab68..b839be491b74a034cf848d2dd043aba7d75b7b92 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)