summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-29 15:08:02 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-29 15:08:02 +0000
commitf228e6f0a21e8d8a6ee3064c7868a882b2967639 (patch)
tree984cb82fc495dbb18f3028808ea3f1ff236a0d4c
parentb6b7e0cb5100cef5d93b5a3224d6288b5091cedb (diff)
downloadiconv-f228e6f0a21e8d8a6ee3064c7868a882b2967639.tar.gz
iconv-f228e6f0a21e8d8a6ee3064c7868a882b2967639.tar.bz2
Apparently, the compiler complains less when you initialise variables. Who'd have thought it?!
svn path=/trunk/iconv/; revision=5831
-rw-r--r--src/iconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iconv.c b/src/iconv.c
index a96a5a6..dccd23b 100644
--- a/src/iconv.c
+++ b/src/iconv.c
@@ -254,7 +254,7 @@ size_t iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf,
size_t *outbytesleft)
{
struct encoding_context *e;
- unsigned int read;
+ unsigned int read = 0;
/* search for cd in list */
for (e = context_list; e; e = e->next)