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

modules/filters/mod_brotli.c

index d1d7044ac8f3b697f629c4788923ccacd506b317..a47684c68f3e3c91120fdb60df6533324ff93163 100644 (file)
@@ -419,7 +419,7 @@ static apr_status_t compress_filter(ap_filter_t *f, apr_bucket_brigade *bb)
             }
             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 */