Skip to content

Commit 808161e

Browse files
committed
fix missing sentinel in call
1 parent 3620d14 commit 808161e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/shared/web_workflow/web_workflow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static void _send_str(socketpool_socket_obj_t *socket, const char *str) {
351351
}
352352

353353
// The last argument must be NULL! Otherwise, it won't stop.
354-
static void _send_strs(socketpool_socket_obj_t *socket, ...) {
354+
static __attribute__((sentinel)) void _send_strs(socketpool_socket_obj_t *socket, ...) {
355355
va_list ap;
356356
va_start(ap, socket);
357357

@@ -691,7 +691,7 @@ static void _reply_with_file(socketpool_socket_obj_t *socket, _request *request,
691691
} else if (_endswith(filename, ".json")) {
692692
_send_strs(socket, "Content-Type:", "application/json", ";charset=UTF-8\r\n", NULL);
693693
} else {
694-
_send_strs(socket, "Content-Type:", "application/octet-stream\r\n");
694+
_send_strs(socket, "Content-Type:", "application/octet-stream\r\n", NULL);
695695
}
696696
_cors_header(socket, request);
697697
_send_str(socket, "\r\n");

0 commit comments

Comments
 (0)