Avoid printing NULL strings in logs
Avoid printing NULL strings in logs
"?:" is a GNU extension, use standard syntax
spotted by Christophe Jaillet
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1874866 13f79535-47bb-0310-9956-
ffa450edef68
}
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 ? token : "NULL", q);
}
/* No acceptable token found or q=0 */
}
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 ? token : "NULL", q);
}
/* No acceptable token found or q=0 */