Skip to content

Commit 6313a20

Browse files
author
Edward Thomson
authored
Merge pull request libgit2#4141 from kainjow/patch-2
Fix inet_pton tests triggering an assert in Haiku
2 parents 7143145 + 4017017 commit 6313a20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/core/posix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ void test_core_posix__inet_pton(void)
9494
cl_assert(p_inet_pton(AF_INET, "10.foo.bar.1", &addr) == 0);
9595

9696
/* Test unsupported address families */
97-
cl_git_fail(p_inet_pton(12, "52.472", NULL)); /* AF_DECnet */
97+
cl_git_fail(p_inet_pton(12, "52.472", &addr)); /* AF_DECnet */
9898
cl_assert_equal_i(EAFNOSUPPORT, errno);
9999

100-
cl_git_fail(p_inet_pton(5, "315.124", NULL)); /* AF_CHAOS */
100+
cl_git_fail(p_inet_pton(5, "315.124", &addr)); /* AF_CHAOS */
101101
cl_assert_equal_i(EAFNOSUPPORT, errno);
102102
}
103103

0 commit comments

Comments
 (0)