From: Erwan MAS Date: Sun, 25 May 2025 03:57:00 +0000 (-0400) Subject: - fix issue with struct ml , not be initialized , test mod_get_addr_type failed X-Git-Tag: RELEASE_1.5.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8253bb6bc6c677f462b1274d448e8f8532e1e24;p=thirdparty%2Fmlmmj.git - fix issue with struct ml , not be initialized , test mod_get_addr_type failed --- diff --git a/tests/mlmmj.c b/tests/mlmmj.c index 7bc00527..6c40cff8 100644 --- a/tests/mlmmj.c +++ b/tests/mlmmj.c @@ -2703,6 +2703,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) pid_t p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype; char *addr; ml.fd = open(".", O_DIRECTORY); @@ -2713,6 +2715,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype; char *addr; ml.fd = open(".", O_DIRECTORY); @@ -2723,6 +2727,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype = 0; char *addr; ml.fd = open(".", O_DIRECTORY); @@ -2736,6 +2742,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype = 0; char *addr; ml.fd = open(".", O_DIRECTORY); @@ -2747,6 +2755,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype = 0; char *addr; ml.fd = open(".", O_DIRECTORY); @@ -2761,6 +2771,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype = 0; char *addr; ml.fd = open(".", O_DIRECTORY); @@ -2775,6 +2787,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype = 0; char *addr; ml.fd = open(".", O_DIRECTORY); @@ -2788,6 +2802,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype = 0; char *addr; ml.fd = open(".", O_DIRECTORY); @@ -2800,6 +2816,8 @@ ATF_TC_BODY(mod_get_addr_type, tc) p = atf_utils_fork(); if (p == 0) { struct ml ml; + ml_init(&ml); + ml.dir = "list"; enum subtype subtype = 0; char *addr; ml.fd = open(".", O_DIRECTORY);