From 40fcbd35d6704308197d274d8d7b8412751d744d Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 29 Sep 2013 18:04:40 +0200 Subject: [PATCH] if the StrBuf or its parts are NULL, we can't do any work. --- libcitadel/lib/stringbuf.c | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.30.2