diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-05-28 16:25:01 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-05-28 16:25:01 +0000 |
commit | 6471f83c19bf4d6c4235656fee168f87f2f4814e (patch) | |
tree | 4e9b9c837e2e69ac7ad029aa835674fce144ffec /utils/url.c | |
parent | 2ba709293341098e95863fc1093903e951b611ae (diff) | |
download | netsurf-6471f83c19bf4d6c4235656fee168f87f2f4814e.tar.gz netsurf-6471f83c19bf4d6c4235656fee168f87f2f4814e.tar.bz2 |
We don't care about the result of regexec(); only that it was successful or not
svn path=/trunk/netsurf/; revision=7612
Diffstat (limited to 'utils/url.c')
-rw-r--r-- | utils/url.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |