r13677 jmb - /trunk/libdom/bindings/hubbub/parser.c

netsurf at semichrome.net netsurf at semichrome.net
Sun Mar 25 12:11:57 BST 2012


Author: jmb
Date: Sun Mar 25 06:11:57 2012
New Revision: 13677

URL: http://source.netsurf-browser.org?rev=13677&view=rev
Log:
Fix misuse of msg

Modified:
    trunk/libdom/bindings/hubbub/parser.c

Modified: trunk/libdom/bindings/hubbub/parser.c
URL: http://source.netsurf-browser.org/trunk/libdom/bindings/hubbub/parser.c?rev=13677&r1=13676&r2=13677&view=diff
==============================================================================
--- trunk/libdom/bindings/hubbub/parser.c (original)
+++ trunk/libdom/bindings/hubbub/parser.c Sun Mar 25 06:11:57 2012
@@ -150,12 +150,11 @@
 	parser->complete = false;
 
 	if (msg == NULL) {
-		parser->msg = dom_hubbub_parser_default_msg;
-		parser->mctx = NULL;
-	} else {
-		parser->msg = msg;
-		parser->mctx = mctx;
-	}
+		msg = dom_hubbub_parser_default_msg;
+		mctx = NULL;
+	}
+	parser->msg = msg;
+	parser->mctx = mctx;
 
 	error = hubbub_parser_create(enc, fix_enc, dom_hubbub_alloc, NULL, 
 			&parser->parser);




More information about the netsurf-commits mailing list