Explicitly test against NULL; do not use !p or similar
[openssl.git] / crypto / cms / cms_ess.c
index 1a6c05f1afd491bef2108b5df3e5a9154bc8886b..00a08aafeac499eed8b812adc1eb86d17acefbec 100644 (file)
@@ -202,7 +202,7 @@ int cms_Receipt_verify(CMS_ContentInfo *cms, CMS_ContentInfo *req_cms)
 
     /* Extract and decode receipt content */
     pcont = CMS_get0_content(cms);
-    if (!pcont || !*pcont) {
+    if (pcont == NULL || *pcont == NULL) {
         CMSerr(CMS_F_CMS_RECEIPT_VERIFY, CMS_R_NO_CONTENT);
         goto err;
     }