summaryrefslogtreecommitdiff
path: root/modules/filters
diff options
context:
space:
mode:
authorGiovanni Bechis <gbechis@apache.org>2020-02-26 17:47:53 +0000
committerGiovanni Bechis <gbechis@apache.org>2020-02-26 17:47:53 +0000
commit46e908f1dcddde96a0c60b5e6d6aad8f7a261a33 (patch)
tree1ac185d94f26258155262bdd870feee8e2c7669d /modules/filters
parent52ecd09cfac6849d645a6ec2265563e4ba962049 (diff)
downloadhttpd-46e908f1dcddde96a0c60b5e6d6aad8f7a261a33.tar.gz
Avoid printing NULL strings in logs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/filters')
-rw-r--r--modules/filters/mod_brotli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/filters/mod_brotli.c b/modules/filters/mod_brotli.c
index d1d7044ac8..a47684c68f 100644
--- a/modules/filters/mod_brotli.c
+++ b/modules/filters/mod_brotli.c
@@ -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 */