make EVP_PKEY opaque
[openssl.git] / crypto / asn1 / tasn_dec.c
index 94445bdc497c8a335d78d07cd548e14412e2bc86..595c5e4cb18152bd572a20ca6fc7f007315d221e 100644 (file)
@@ -893,7 +893,7 @@ static int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
         /* All based on ASN1_STRING and handled the same */
         if (!*pval) {
             stmp = ASN1_STRING_type_new(utype);
-            if (!stmp) {
+            if (stmp == NULL) {
                 ASN1err(ASN1_F_ASN1_EX_C2I, ERR_R_MALLOC_FAILURE);
                 goto err;
             }