diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2015-11-29 17:06:28 +0100 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2015-11-29 17:06:28 +0100 |
commit | c3bc5ac55242098649abaafb53ceb3f2c4007f70 (patch) | |
tree | 2d354c45ffc41421ad331374684c2010756d5e31 /modules/arch | |
parent | Fix the use of the default 'flush' provider. (diff) | |
download | apache2-c3bc5ac55242098649abaafb53ceb3f2c4007f70.tar.xz apache2-c3bc5ac55242098649abaafb53ceb3f2c4007f70.zip |
Silent a sparse Warning.
cid->ecb->lpszLogData can not be NULL.
It is defined in mod_isapi.h as:
typedef struct EXTENSION_CONTROL_BLOCK {
...
char lpszLogData[80];
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1717086 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch')
-rw-r--r-- | modules/arch/win32/mod_isapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index ec0d35e74f..66cc8da69e 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -1582,9 +1582,10 @@ static apr_status_t isapi_handler (request_rec *r) rv = (*isa->HttpExtensionProc)(cid->ecb); /* Check for a log message - and log it */ - if (cid->ecb->lpszLogData && *cid->ecb->lpszLogData) + if (*cid->ecb->lpszLogData) { ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(02113) "%s: %s", r->filename, cid->ecb->lpszLogData); + } switch(rv) { case 0: /* Strange, but MS isapi accepts this as success */ |