From d564004d252ae4a84eeb004f98a05c6adae59ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Thu, 15 Oct 2015 08:38:13 +0200 Subject: [PATCH] Fix build on MacOSX --- coreapi/account_creator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/account_creator.c b/coreapi/account_creator.c index 425afbdfb..3da8106eb 100644 --- a/coreapi/account_creator.c +++ b/coreapi/account_creator.c @@ -173,7 +173,7 @@ static bool_t is_matching_regex(const char *entry, const char* regex) { char err_msg[256]; int res; res = regcomp(®ex_pattern, regex, REG_EXTENDED | REG_NOSUB); - if(res != REG_NOERROR) { + if(res != 0) { regerror(res, ®ex_pattern, err_msg, sizeof(err_msg)); ms_error("Could not compile regex '%s: %s", regex, err_msg); return FALSE;