]> granicus.if.org Git - apache/commitdiff
Silent a sparse Warning.
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 29 Nov 2015 16:06:28 +0000 (16:06 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 29 Nov 2015 16:06:28 +0000 (16:06 +0000)
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

modules/arch/win32/mod_isapi.c

index ec0d35e74f529fc022f94901335aca333e7d0461..66cc8da69edc3d0ea77d401b170f8cf96522f76f 100644 (file)
@@ -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 */