diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2008-10-21 23:39:15 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2008-10-21 23:39:15 +0000 |
commit | 1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90 (patch) | |
tree | a88868e69d5ac42e21eaf918d6ba059220014f43 /ext/dom/domimplementation.c | |
parent | b2bc40f70c2e02c7fe81207e48f73b401946e8ae (diff) | |
download | php-git-1d5ba8bb21a1eefbaaf8f02625d00f37fb4b5b90.tar.gz |
MFH: initialize optional vars
Diffstat (limited to 'ext/dom/domimplementation.c')
-rw-r--r-- | ext/dom/domimplementation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c index 8fe748ce9d..c0066d264e 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; |