Hi,

A trivial patch for tokeniser.c to stop GCC 4.4.0 whining about
uninitialised variables. In all cases a pointer to a pointer is passed
into which the result is copied, but GCC doesn't understand this.

Regards,
Jeroen 'VeXocide' Habraken
--- src/tokeniser/tokeniser.c
+++ src/tokeniser/tokeniser.c
@@ -787,7 +787,7 @@
 							+ 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 @@
 					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_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 */

Reply via email to