]> granicus.if.org Git - apache/commitdiff
* support/logresolve.c (main): Fix potential NULL pointer dereference,
authorJoe Orton <jorton@apache.org>
Mon, 5 Mar 2007 23:21:31 +0000 (23:21 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 5 Mar 2007 23:21:31 +0000 (23:21 +0000)
found by Coverity analysis tool.

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

support/logresolve.c

index e11394001d9adc9cd282d331625cc8e7a578c1df..5414c7653d19895df9276d7e50979333f215fd00 100644 (file)
@@ -237,7 +237,7 @@ int main(int argc, const char * const argv[])
         if (status != APR_SUCCESS) {
             /* Not an IP address */
                 withname++;
-            *space = ' ';
+            if (space) *space = ' ';
             apr_file_puts(line, outfile);
             continue;
         }