diff options
Diffstat (limited to '')
-rw-r--r-- | src/strbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strbuf.c b/src/strbuf.c index 0e56468b..c7e3f2b5 100644 --- a/src/strbuf.c +++ b/src/strbuf.c @@ -86,10 +86,10 @@ int strbuf_cmp(strbuf* a, strbuf* b) { b == NULL || b->alloc == 0) { ERR("a or b not alloced"); - // return -1; + return -1; + } else { + return strncmp(a->mem, b->mem, a->len); } - - return strncmp(a->mem, b->mem, a->len); } int strbuf_c(strbuf* a, const char* b) { |