summaryrefslogtreecommitdiff
path: root/ext/dom/domimplementation.c
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:39:15 (GMT)
committerArnaud Le Blanc <lbarnaud@php.net>2008-10-21 23:39:15 (GMT)
commit1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90 (patch)
treea88868e69d5ac42e21eaf918d6ba059220014f43 /ext/dom/domimplementation.c
parentb2bc40f70c2e02c7fe81207e48f73b401946e8ae (diff)
downloadphp-1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90.tar.gz
MFH: initialize optional vars
Diffstat (limited to 'ext/dom/domimplementation.c')
-rw-r--r--ext/dom/domimplementation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c
index 8fe748c..c0066d2 100644
--- a/ext/dom/domimplementation.c
+++ b/ext/dom/domimplementation.c
@@ -98,7 +98,7 @@ PHP_METHOD(domimplementation, createDocumentType)
zval *rv = NULL;
xmlDtd *doctype;
int ret, name_len = 0, publicid_len = 0, systemid_len = 0;
- char *name, *publicid, *systemid;
+ char *name = NULL, *publicid = NULL, *systemid = NULL;
xmlChar *pch1 = NULL, *pch2 = NULL, *localname = NULL;
xmlURIPtr uri;
@@ -161,7 +161,7 @@ PHP_METHOD(domimplementation, createDocument)
xmlDtdPtr doctype = NULL;
xmlNsPtr nsptr = NULL;
int ret, uri_len = 0, name_len = 0, errorcode = 0;
- char *uri, *name;
+ char *uri = NULL, *name = NULL;
char *prefix = NULL, *localname = NULL;
dom_object *doctobj;