]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Avoid printing NULL strings in logs
authorGiovanni Bechis <gbechis@apache.org>
Sat, 22 Feb 2020 00:14:49 +0000 (00:14 +0000)
committerGiovanni Bechis <gbechis@apache.org>
Sat, 22 Feb 2020 00:14:49 +0000 (00:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874346 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_deflate.c

index 9ce104af27c532641a2e97b043ac67a99c5f744d..fc2531a68403f34dfe7c3667804c52be264c1391 100644 (file)
@@ -770,7 +770,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
                 }
                 q = ap_get_token(r->pool, &accepts, 1);
                 ap_log_rerror(APLOG_MARK, APLOG_TRACE1, 0, r,
-                              "token: '%s' - q: '%s'", token, q);
+                              "token: '%s' - q: '%s'", token ?: "NULL", q);
             }
 
             /* No acceptable token found or q=0 */