diff options
Diffstat (limited to 'utils/url.c')
-rw-r--r-- | utils/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/url.c b/utils/url.c index 832b5b14b..5eb7c97b9 100644 --- a/utils/url.c +++ b/utils/url.c @@ -68,7 +68,7 @@ url_func_result url_normalize(const char *url, char **result) *result = NULL; - if ((m = regexec(&url_re, url, 10, match, 0)) != NULL) { + if ((m = regexec(&url_re, url, 10, match, 0))) { LOG(("url '%s' failed to match regex", url)); return URL_FUNC_FAILED; } @@ -84,7 +84,7 @@ url_func_result url_normalize(const char *url, char **result) } strcpy(*result, "http://"); strcpy(*result + sizeof("http://")-1, url); - if ((m = regexec(&url_re, *result, 10, match, 0)) != NULL) { + if ((m = regexec(&url_re, *result, 10, match, 0))) { LOG(("url '%s' failed to match regex", (*result))); free(*result); return URL_FUNC_FAILED; |