From: Sebastian Harl Date: Thu, 5 Sep 2013 16:27:10 +0000 (+0200) Subject: utils strbuf: Fixed a wrong assertion. X-Git-Tag: sysdb-0.1.0~353 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db43bc78663b69c46a8fa321e114d4f6f67009fe;p=sysdb.git utils strbuf: Fixed a wrong assertion. --- diff --git a/src/utils/strbuf.c b/src/utils/strbuf.c index c8e7e63..7c24b3a 100644 --- a/src/utils/strbuf.c +++ b/src/utils/strbuf.c @@ -196,7 +196,7 @@ sdb_strbuf_chomp(sdb_strbuf_t *strbuf) if (! strbuf) return -1; - assert(strbuf->size || (strbuf->pos < strbuf->size)); + assert((!strbuf->size) || (strbuf->pos < strbuf->size)); assert(strbuf->pos <= strbuf->size); while ((strbuf->pos > 0)