com php-src: fix possibly uninitialized value: ext/dom/document.c
| From: | Michael Wallner | Date: | Fri, 06 Dec 2013 09:27:33 +0000 |
| Subject: | com php-src: fix possibly uninitialized value: ext/dom/document.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74262@lists.php.net to get a copy of this message | ||
Commit: 098d2a5d0ff6353602654a9872c76c5811277546
Author: Michael Wallner <mike@php.net> Fri, 6 Dec 2013 10:27:33 +0100
Parents: 86aad979798a665e3f23aafb200390d51d44f8fa
Branches: PHP-5.4 PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=098d2a5d0ff6353602654a9872c76c5811277546
Log:
fix possibly uninitialized value
Changed paths:
M ext/dom/document.c
Diff:
diff --git a/ext/dom/document.c b/ext/dom/document.c
index 0826863..2766273 100644
--- a/ext/dom/document.c
+++ b/ext/dom/document.c
@@ -2296,7 +2296,7 @@ PHP_FUNCTION(dom_document_save_html)
xmlBufferPtr buf;
dom_object *intern, *nodeobj;
xmlChar *mem = NULL;
- int size, format;
+ int size = 0, format;
dom_doc_propsptr doc_props;
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(),