From 2766f07d41a4cf734f75ce65b1f321cf1234b68f Mon Sep 17 00:00:00 2001 From: Giovanni Bechis Date: Sat, 22 Feb 2020 00:14:49 +0000 Subject: [PATCH] Avoid printing NULL strings in logs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874346 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_deflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 9ce104af27c..fc2531a6840 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -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 */ -- 2.47.3