]> granicus.if.org Git - apache/commitdiff
Silence compiler warning:
authorRainer Jung <rjung@apache.org>
Mon, 19 Dec 2016 20:36:58 +0000 (20:36 +0000)
committerRainer Jung <rjung@apache.org>
Mon, 19 Dec 2016 20:36:58 +0000 (20:36 +0000)
"686: warning: 'ok' may be used uninitialized in
this function"
This is a false positive, because the value of "ok"
will only be used if stapling_get_cached_response()
sets "rsp" to non-NULL in which case it will always
have set "ok".

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1775173 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_util_stapling.c

index 718a291793194525d92c8aca8226320f4bff16a3..c3e2cfa657cd61d81118de5dbf8a397e2c70c742 100644 (file)
@@ -690,7 +690,7 @@ static int get_and_check_cached_response(server_rec *s, modssl_ctx_t *mctx,
                                          OCSP_RESPONSE **rsp, BOOL *pok,
                                          certinfo *cinf, apr_pool_t *p)
 {
-    BOOL ok;
+    BOOL ok = FALSE;
     int rv;
 
     AP_DEBUG_ASSERT(*rsp == NULL);