]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
tests: fix init_sock on linux
authorBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 5 Dec 2022 13:04:22 +0000 (14:04 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 5 Dec 2022 13:04:22 +0000 (14:04 +0100)
tests/mlmmj.c

index 33948d99ee50ea5f651ea88e49e68a2ca4adca04..683456cc1625a96fdb70983c243250505abe774e 100644 (file)
@@ -231,7 +231,7 @@ ATF_TC_BODY(init_sock, tc)
        if (p == 0) {
                int s, c;
                struct sockaddr_in me, cl;
-               socklen_t clsize;
+               socklen_t clsize = 0;
                s = socket(AF_INET, SOCK_STREAM, 0);
                if (s < 0)
                        exit(1);