]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/stringbuf.c
* more testcoverage
[citadel.git] / libcitadel / lib / stringbuf.c
index ea12a91abddb82febfe78aa42b1ce472a4868332..c41be76fcdd2d4482827ac8da341b89168019001 100644 (file)
@@ -521,7 +521,7 @@ char *SmashStrBuf (StrBuf **SmashMe)
 {
        char *Ret;
 
-       if (*SmashMe == NULL)
+       if ((SmashMe == NULL) || (*SmashMe == NULL))
                return NULL;
 #ifdef SIZE_DEBUG
        if (hFreeDbglog == -1){