From: Joe Orton Date: Mon, 5 Mar 2007 23:21:31 +0000 (+0000) Subject: * support/logresolve.c (main): Fix potential NULL pointer dereference, X-Git-Tag: 2.3.0~1898 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6ab98da93149e6538c5a8a7c4a897ed3a9f2a6d;p=thirdparty%2Fapache%2Fhttpd.git * support/logresolve.c (main): Fix potential NULL pointer dereference, found by Coverity analysis tool. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@514915 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/logresolve.c b/support/logresolve.c index e11394001d9..5414c7653d1 100644 --- a/support/logresolve.c +++ b/support/logresolve.c @@ -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; }