From: Rainer Jung Date: Mon, 19 Dec 2016 20:36:58 +0000 (+0000) Subject: Silence compiler warning: X-Git-Tag: 2.5.0-alpha~889 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67b777389bbb79b555d1b0db851212a7956f99a4;p=thirdparty%2Fapache%2Fhttpd.git Silence compiler warning: "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 --- diff --git a/modules/ssl/ssl_util_stapling.c b/modules/ssl/ssl_util_stapling.c index 718a2917931..c3e2cfa657c 100644 --- a/modules/ssl/ssl_util_stapling.c +++ b/modules/ssl/ssl_util_stapling.c @@ -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);