summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-05 17:18:41 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-05 17:18:41 +0000
commit44b9e781e57af22c299a523b094a68dc42030814 (patch)
treef60aadde2c2f8b8535a392d21371e6308c1e1b9e /src
parent858555fa4d2a9bd44cbb5737d7bb22f10c8f9fef (diff)
downloadlibhubbub-44b9e781e57af22c299a523b094a68dc42030814.tar.gz
libhubbub-44b9e781e57af22c299a523b094a68dc42030814.tar.bz2
Initialise variables to stop GCC 4.4 complaining (credit: Jeroen Habraken)
svn path=/trunk/hubbub/; revision=7398
Diffstat (limited to 'src')
-rw-r--r--src/tokeniser/tokeniser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tokeniser/tokeniser.c b/src/tokeniser/tokeniser.c
index 7dfe026..fa9bbd9 100644
--- a/src/tokeniser/tokeniser.c
+++ b/src/tokeniser/tokeniser.c
@@ -787,7 +787,7 @@ hubbub_error hubbub_tokeniser_handle_character_reference_data(
+ 1);
} else {
parserutils_error error;
- const uint8_t *cptr;
+ const uint8_t *cptr = NULL;
error = parserutils_inputstream_peek(
tokeniser->input,
tokeniser->context.pending,
@@ -1590,8 +1590,8 @@ hubbub_error hubbub_tokeniser_handle_character_reference_in_attribute_value(
tokeniser->context.match_entity.length
+ 1;
} else {
- size_t len;
- const uint8_t *cptr;
+ size_t len = 0;
+ const uint8_t *cptr = NULL;
parserutils_error error;
error = parserutils_inputstream_peek(
@@ -3137,7 +3137,7 @@ hubbub_error emit_current_chars(hubbub_tokeniser *tokeniser)
{
hubbub_token token;
size_t len;
- const uint8_t *cptr;
+ const uint8_t *cptr = NULL;
parserutils_error error;
/* Calling this with nothing to output is a probable bug */