Stricter check for test_dns_error()

This commit is contained in:
cpq 2023-07-01 20:23:59 +01:00
parent 0c7e6b548f
commit cca771e70e

View File

@ -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;
}