Browse Source

Merge branch 'rs/strbuf-remove-fix'

Code cleanup.

* rs/strbuf-remove-fix:
  strbuf: use valid pointer in strbuf_remove()
maint
Junio C Hamano 9 years ago
parent
commit
3ba0bbb901
  1. 2
      strbuf.c

2
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) 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) void strbuf_add(struct strbuf *sb, const void *data, size_t len)

Loading…
Cancel
Save