summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-03-02 13:51:57 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-05-19 11:12:13 +0100
commitad4ede91e96b810e7d792c7ca47d8f5321caef9a (patch)
tree22324db5069ac066102c94636c1277bc1128971a
parent31f8f82a65c11dfe9e57e618446aaff8cc21d84a (diff)
downloadlibgit2-ad4ede91e96b810e7d792c7ca47d8f5321caef9a.tar.gz
tests: fix p_regcomp test not checking return type
While the test asserts that the error value indcates a non-value, it is actually never getting assigned to. Fix this.
-rw-r--r--tests/core/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/posix.c b/tests/core/posix.c
index 281285024..e8b81f842 100644
--- a/tests/core/posix.c
+++ b/tests/core/posix.c
@@ -169,7 +169,7 @@ void test_core_posix__p_regcomp_ignores_global_locale_ctype(void)
cl_fail("Expected locale to be switched to multibyte");
}
- p_regcomp(&preg, "[\xc0-\xff][\x80-\xbf]", P_REG_EXTENDED);
+ error = p_regcomp(&preg, "[\xc0-\xff][\x80-\xbf]", P_REG_EXTENDED);
p_regfree(&preg);
setlocale(LC_CTYPE, oldlocale);