]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/stringbuf.c
don't rely on malloc to handle (0) parameter; abort before.
[citadel.git] / libcitadel / lib / stringbuf.c
index 4cee2be32980d3133f41bdd9749a48ae850b375e..cdb4ccd0a8fb48c631877b2205ad8474281058f0 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;
        }