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>
Mon, 7 Oct 2013 19:36:19 +0000 (21:36 +0200)
libcitadel/lib/stringbuf.c

index 1b9ea072366221b9bea1f8cf1f438a229f795bb3..cdbd3651d5402440f7bf8a12c00866dfb8f2fef5 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;
        }