summaryrefslogtreecommitdiff
path: root/ext/xmlreader
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-02-06 11:28:41 +0000
committerAntony Dovgal <tony2001@php.net>2006-02-06 11:28:41 +0000
commitbccf4bd9e76bb6009fea6b20a4d15c4eafc24747 (patch)
treebc7123c7bfbe25b8f12bd1c580b3ce840cfb7f02 /ext/xmlreader
parent8911fac6534bc676022e178dfe4d71a29ba5ed2f (diff)
downloadphp-git-bccf4bd9e76bb6009fea6b20a4d15c4eafc24747.tar.gz
MFH: initialize variables and reduce the number of warnings
Diffstat (limited to 'ext/xmlreader')
-rw-r--r--ext/xmlreader/php_xmlreader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xmlreader/php_xmlreader.c b/ext/xmlreader/php_xmlreader.c
index 24ff43d31a..22bf7fdc4d 100644
--- a/ext/xmlreader/php_xmlreader.c
+++ b/ext/xmlreader/php_xmlreader.c
@@ -831,7 +831,7 @@ PHP_METHOD(xmlreader, open)
{
zval *id;
int source_len = 0;
- xmlreader_object *intern;
+ xmlreader_object *intern = NULL;
char *source, *valid_file = NULL;
char resolved_path[MAXPATHLEN + 1];
xmlTextReaderPtr reader = NULL;
@@ -953,7 +953,7 @@ PHP_METHOD(xmlreader, XML)
{
zval *id;
int source_len = 0;
- xmlreader_object *intern;
+ xmlreader_object *intern = NULL;
char *source, *uri = NULL;
int resolved_path_len;
char *directory=NULL, resolved_path[MAXPATHLEN];