Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/strbuf-remove-fix' into maint
author
Junio C Hamano
<gitster@pobox.com>
Thu, 29 Sep 2016 23:49:35 +0000
(16:49 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 29 Sep 2016 23:49:35 +0000
(16:49 -0700)
Code cleanup.
* rs/strbuf-remove-fix:
strbuf: use valid pointer in strbuf_remove()
strbuf.c
patch
|
blob
|
history
raw
(from parent 1:
3a3bb36
)
diff --git
a/strbuf.c
b/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)