Fix a bogus warning about an uninitialised var
[openssl.git] / crypto / ocsp / ocsp_prn.c
index 1834256af271f3f39d431124cf5718bf5e383090..47d5f83ef9b09ab2ca7a3125dc6b556dd66e7f3c 100644 (file)
@@ -212,8 +212,7 @@ int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags)
         return 1;
     }
 
-    i = ASN1_STRING_length(rb->response);
-    if (!(br = OCSP_response_get1_basic(o)))
+    if ((br = OCSP_response_get1_basic(o)) == NULL)
         goto err;
     rd = br->tbsResponseData;
     l = ASN1_INTEGER_get(rd->version);