Преглед на файлове

Fix clang missing field initializer warning.

Static variables are initialized to zero so no need to explicitely do it.
Kevin Wojniak преди 10 години
родител
ревизия
95a2cf40d0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      test/unit_test.c

+ 1 - 1
test/unit_test.c

@@ -358,7 +358,7 @@ void (*init_lua)(struct mg_connection *, void *lua_context);
 void (*upload)(struct mg_connection *, const char *file_name);
 int  (*http_error)(struct mg_connection *, int status);
 
-static struct mg_callbacks CALLBACKS = {0};
+static struct mg_callbacks CALLBACKS;
 
 static void init_CALLBACKS() {
     memset(&CALLBACKS, 0, sizeof(CALLBACKS));