X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;h=f8f93e161b3364b772fcf0896bfc1f01382d0d34;hp=78745ee9d0083082bf1e6095b735b081a3bb4abb;hb=864a85259b0369033e49666603eed6661b01606c;hpb=8c131f561b503d35e854996b1798d268276463e6 diff --git a/http_api.c b/http_api.c index 78745ee..f8f93e1 100644 --- a/http_api.c +++ b/http_api.c @@ -212,7 +212,7 @@ STATUS _http_exit_ex(int status, char *header, char *body, zend_bool send_header { if ( (send_header && (SUCCESS != http_send_status_header(status, header))) || (status && (SUCCESS != http_send_status(status)))) { - http_error_ex(HE_WARNING, HTTP_E_HEADER, "Failed to exit with status/header: %d - %s", status, header ? header : ""); + http_error_ex(HE_WARNING, HTTP_E_HEADER, "Failed to exit with status/header: %d - %s", status, STR_PTR(header)); STR_FREE(header); STR_FREE(body); return FAILURE;