]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/asn1/a_time.c
Use p==NULL not !p (in if statements, mainly)
[thirdparty/openssl.git] / crypto / asn1 / a_time.c
index 7ff3de37eb350bd734c573533380b371d9351785..6114c52dc7a6415d6854824aeb2a6df9870c92b2 100644 (file)
@@ -116,8 +116,8 @@ ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t,
     if (!ASN1_TIME_check(t))
         return NULL;
 
-    if (!out || !*out) {
-        if (!(ret = ASN1_GENERALIZEDTIME_new()))
+    if (out == NULL || *out == NULL) {
+        if ((ret = ASN1_GENERALIZEDTIME_new()) == NULL)
             return NULL;
         if (out)
             *out = ret;