mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-24 11:54:49 +00:00
Stricter check for test_dns_error()
This commit is contained in:
1 parent
0c7e6b548f
commit
cca771e70e
1 file changed
+3
-1
+3
-1
@@ -1920,8 +1920,10 @@ static void test_str(void) {
|
||||
}
|
||||
|
||||
static void fn1(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
if (ev == MG_EV_ERROR)
|
||||
if (ev == MG_EV_ERROR) {
|
||||
ASSERT(* (void **) fn_data == NULL);
|
||||
*(char **) fn_data = mg_mprintf("%s", (char *) ev_data);
|
||||
}
|
||||
(void) c;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user