com php-src: fix uninitialized variable: ext/dom/document.c
| From: | Anatol Belski | Date: | Tue, 03 Dec 2013 21:03:11 +0000 |
| Subject: | com php-src: fix uninitialized variable: ext/dom/document.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74229@lists.php.net to get a copy of this message | ||
Commit: c14d14e0d6d4f59d96845b7d77ce52dd460e380b
Author: Anatol Belski <ab@php.net> Tue, 3 Dec 2013 22:03:11 +0100
Parents: fbb87ace854e362842b0969edece0c0788e4d90e
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c14d14e0d6d4f59d96845b7d77ce52dd460e380b
Log:
fix uninitialized variable
Changed paths:
M ext/dom/document.c
Diff:
diff --git a/ext/dom/document.c b/ext/dom/document.c
index e23d47f..5bacc0f 100644
--- a/ext/dom/document.c
+++ b/ext/dom/document.c
@@ -2320,7 +2320,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(),