if the StrBuf or its parts are NULL, we can't do any work.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 29 Sep 2013 16:04:40 +0000 (18:04 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 29 Sep 2013 16:04:40 +0000 (18:04 +0200)
libcitadel/lib/stringbuf.c

index 4cee2be..cdb4ccd 100644 (file)
@@ -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;
        }