diff --git a/test/unit_test.c b/test/unit_test.c
index d91cddf0e51c47cdb12b34c0679d857c5eca207b..7aef22cb93c6740883751daea1fcd7f7e4cd19e2 100644
--- a/test/unit_test.c
+++ b/test/unit_test.c
@@ -282,7 +282,7 @@ static int log_message_cb(const struct mg_connection *conn, const char *msg) {
 
 static const struct mg_callbacks CALLBACKS = {
   &begin_request_handler_cb, NULL, &log_message_cb, NULL, NULL, NULL, NULL,
-  &open_file_cb, NULL, &upload_cb
+  &open_file_cb, NULL, &upload_cb, NULL, NULL
 };
 
 static const char *OPTIONS[] = {