diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-27 12:08:23 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-27 12:08:23 +0000 |
commit | 7e7e1f6ed33198102e88cf42a181608269e0c289 (patch) | |
tree | 031a2f525da3ecbd9c91122c6642f946e2ad0ed4 /utils | |
parent | 58225862c225ccf64a67c541688d902913b4a0fc (diff) | |
download | netsurf-7e7e1f6ed33198102e88cf42a181608269e0c289.tar.gz netsurf-7e7e1f6ed33198102e88cf42a181608269e0c289.tar.bz2 |
Squash erroneous warnings abuout uninitalised variable use from gcc 3.4.6.
svn path=/trunk/netsurf/; revision=12901
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nsurl.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c index f49759df6..c6fd24425 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -459,8 +459,8 @@ static nserror nsurl__create_from_section(const char const *url_s, nsurl *url) { int ascii_offset; - int start; - int end; + int start = 0; + int end = 0; const char *pos; const char *pos_url_s; char *norm_start = pos_norm; @@ -657,7 +657,7 @@ static nserror nsurl__create_from_section(const char const *url_s, case URL_HOST: if (length != 0) { - size_t colon; + size_t colon = 0; char *sec_start = norm_start; if (pegs->at < pegs->colon_first && pegs->colon_last == pegs->authority) { @@ -1001,14 +1001,14 @@ bool nsurl_compare(const nsurl *url1, const nsurl *url2, nsurl_component parts) nserror nsurl_get(const nsurl *url, nsurl_component parts, char **url_s, size_t *url_l) { - size_t scheme; - size_t username; - size_t password; - size_t host; - size_t port; - size_t path; - size_t query; - size_t fragment; + size_t scheme = 0; + size_t username = 0; + size_t password = 0; + size_t host = 0; + size_t port = 0; + size_t path = 0; + size_t query = 0; + size_t fragment = 0; char *pos; enum { NSURL_F_SCHEME = (1 << 0), |