[libxml2] HTMLparser: Correctly initialise a stack allocated structure
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] HTMLparser: Correctly initialise a stack allocated structure
- Date: Sat, 26 Jul 2014 20:42:09 +0000 (UTC)
commit 579ebbcb3c5a0da78d255f46df15a862d1f82604
Author: Philip Withnall <philip withnall collabora co uk>
Date: Fri Jun 20 21:03:42 2014 +0100
HTMLparser: Correctly initialise a stack allocated structure
If not initialised, the ‘node’ member remains undefined.
Coverity issue: #60466
https://bugzilla.gnome.org/show_bug.cgi?id=731990
HTMLparser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index c26389f..23fafb2 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -4366,7 +4366,7 @@ static void
htmlParseElementInternal(htmlParserCtxtPtr ctxt) {
const xmlChar *name;
const htmlElemDesc * info;
- htmlParserNodeInfo node_info;
+ htmlParserNodeInfo node_info = { 0, };
int failed;
if ((ctxt == NULL) || (ctxt->input == NULL)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]