From 6471f83c19bf4d6c4235656fee168f87f2f4814e Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 28 May 2009 16:25:01 +0000 Subject: We don't care about the result of regexec(); only that it was successful or not svn path=/trunk/netsurf/; revision=7612 --- utils/url.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'utils/url.c') diff --git a/utils/url.c b/utils/url.c index 57b15a12f..b02d77756 100644 --- a/utils/url.c +++ b/utils/url.c @@ -179,7 +179,7 @@ url_func_result url_normalize(const char *url, char **result) /* finally verify that it's actually an URL we're working on * (RFC regex too fussy to tolerate above WSP problems) */ - if ((m = regexec(&url_re, norm, 10, match, 0))) { + if (regexec(&url_re, norm, 10, match, 0)) { LOG(("url '%s' failed to match regex", url)); free(norm); *result = NULL; @@ -188,11 +188,10 @@ url_func_result url_normalize(const char *url, char **result) if (match[URL_RE_SCHEME].rm_so == -1) { /* scheme missing: add http:// and reparse */ -/* LOG(("scheme missing: using http"));*/ memmove(norm + SLEN("http://"), norm, len + 1); memcpy(norm, "http://", SLEN("http://")); /* do NOT copy NUL */ len += SLEN("http://"); - if ((m = regexec(&url_re, norm, 10, match, 0))) { + if (regexec(&url_re, norm, 10, match, 0)) { LOG(("url '%s' failed to match regex", norm)); free(norm); *result = NULL; -- cgit v1.2.3