From: Giovanni Bechis Date: Sat, 22 Feb 2020 00:14:49 +0000 (+0000) Subject: Avoid printing NULL strings in logs X-Git-Tag: 2.5.0-alpha2-ci-test-only~1628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2766f07d41a4cf734f75ce65b1f321cf1234b68f;p=thirdparty%2Fapache%2Fhttpd.git Avoid printing NULL strings in logs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874346 13f79535-47bb-0310-9956-ffa450edef68 --- 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 */