From 6e11d349407e12919480abb7894cfc913e60eb1b Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Wed, 18 Dec 2024 11:25:22 +0100 Subject: [PATCH] =?utf8?q?BUILD:=20ssl/ocsp:=20error:=20=E2=80=98%.*s?= =?utf8?q?=E2=80=99=20directive=20argument=20is=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some gcc version will emit an error because a '%.*s' argument have a NULL parameter. Initialize the string to "" instead. --- src/ssl_ocsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_ocsp.c b/src/ssl_ocsp.c index 741911074f..b4c3122e90 100644 --- a/src/ssl_ocsp.c +++ b/src/ssl_ocsp.c @@ -1098,7 +1098,7 @@ void ocsp_update_response_end_cb(struct httpclient *hc) static void ssl_ocsp_send_log() { int status_str_len = 0; - char *status_str = NULL; + char *status_str = ""; struct certificate_ocsp *ocsp = ssl_ocsp_task_ctx.cur_ocsp; char *last_error = NULL; struct buffer *tmpbuf = get_trash_chunk(); -- 2.47.3