summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wojniak <kainjow@users.noreply.github.com>2017-02-25 10:21:59 -0800
committerGitHub <noreply@github.com>2017-02-25 10:21:59 -0800
commit4017017740d2f4ec9596fc3f79fc4b526f3bf06a (patch)
treebc5094b29d152eb5a0315939d4fbbc29dd0d8f2e
parent7143145f2fcb0f7476f333f9df990b8a06cd52c0 (diff)
downloadlibgit2-4017017740d2f4ec9596fc3f79fc4b526f3bf06a.tar.gz
Fix inet_pton tests triggering an assert in Haiku
Haiku will assert in a nightly build if the "dst" input to inet_pton() is NULL.
-rw-r--r--tests/core/posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core/posix.c b/tests/core/posix.c
index 26ae36049..018d0c8ba 100644
--- a/tests/core/posix.c
+++ b/tests/core/posix.c
@@ -94,10 +94,10 @@ void test_core_posix__inet_pton(void)
cl_assert(p_inet_pton(AF_INET, "10.foo.bar.1", &addr) == 0);
/* Test unsupported address families */
- cl_git_fail(p_inet_pton(12, "52.472", NULL)); /* AF_DECnet */
+ cl_git_fail(p_inet_pton(12, "52.472", &addr)); /* AF_DECnet */
cl_assert_equal_i(EAFNOSUPPORT, errno);
- cl_git_fail(p_inet_pton(5, "315.124", NULL)); /* AF_CHAOS */
+ cl_git_fail(p_inet_pton(5, "315.124", &addr)); /* AF_CHAOS */
cl_assert_equal_i(EAFNOSUPPORT, errno);
}