From: Wilfried Goesgens Date: Sun, 29 Sep 2013 16:04:40 +0000 (+0200) Subject: if the StrBuf or its parts are NULL, we can't do any work. X-Git-Tag: v9.01~237 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=40fcbd35d6704308197d274d8d7b8412751d744d if the StrBuf or its parts are NULL, we can't do any work. --- diff --git a/libcitadel/lib/stringbuf.c b/libcitadel/lib/stringbuf.c index 4cee2be32..cdb4ccd0a 100644 --- a/libcitadel/lib/stringbuf.c +++ b/libcitadel/lib/stringbuf.c @@ -1177,7 +1177,6 @@ void StrBufStripAllBut(StrBuf *Buf, char leftboundary, char rightboundary) const char *pRight; if ((Buf == NULL) || (Buf->buf == NULL)) { - StrBufCutAt(Buf, 0, Buf->buf); return; }