From a1fe308d133dcf28922fde020e5281492a75aaec Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 2 Jan 2005 14:41:07 +0000 Subject: [project @ 2005-01-02 14:41:07 by bursa] regexec() returns int, not a pointer. svn path=/import/netsurf/; revision=1425 --- utils/url.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/url.c') 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; -- cgit v1.2.3