BUILD: ssl/ocsp: error: ‘%.*s’ directive argument is null

Some gcc version will emit an error because a '%.*s' argument have a
NULL parameter. Initialize the string to "" instead.
This commit is contained in:
William Lallemand 2024-12-18 11:25:22 +01:00
parent 93f2c73423
commit 6e11d34940

View File

@ -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();