mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-26 22:41:03 +08:00
Stricter check for test_dns_error()
This commit is contained in:
parent
0c7e6b548f
commit
cca771e70e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user