summaryrefslogtreecommitdiff
path: root/ext/simplexml/simplexml.c
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:39:15 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:39:15 +0000
commit1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90 (patch)
treea88868e69d5ac42e21eaf918d6ba059220014f43 /ext/simplexml/simplexml.c
parentb2bc40f70c2e02c7fe81207e48f73b401946e8ae (diff)
downloadphp-git-1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90.tar.gz
MFH: initialize optional vars
Diffstat (limited to 'ext/simplexml/simplexml.c')
-rw-r--r--ext/simplexml/simplexml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 5db0c9893b..0820b0ea2f 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1502,7 +1502,7 @@ SXE_METHOD(children)
{
php_sxe_object *sxe;
char *nsprefix = NULL;
- int nsprefix_len;
+ int nsprefix_len = 0;
xmlNodePtr node;
zend_bool isprefix = 0;
@@ -1551,7 +1551,7 @@ SXE_METHOD(attributes)
{
php_sxe_object *sxe;
char *nsprefix = NULL;
- int nsprefix_len;
+ int nsprefix_len = 0;
xmlNodePtr node;
zend_bool isprefix = 0;