diff options
author | Christian Stocker <chregu@php.net> | 2002-07-17 08:57:29 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2002-07-17 08:57:29 +0000 |
commit | bb069a1ccbe7e3f5807e1e47c42611e3fcb7f172 (patch) | |
tree | b9333989af637918d5b1eb2f4ef1b212b8fd3e3f /ext/domxml/php_domxml.c | |
parent | 40007c204966959e485cf712691eaeb92680f5ff (diff) | |
download | php-git-bb069a1ccbe7e3f5807e1e47c42611e3fcb7f172.tar.gz |
nodename is not always set, check if it really is.
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index cdb8a098c4..3736f07bb3 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -1382,7 +1382,9 @@ static void domxml_error_ext(void *ctx, const char *msg, ...) } add_assoc_string(errormessages,"errormessage",buf,1); input = ctxt->input; - add_assoc_string(errormessages,"nodename",ctxt->name,1); + if (ctxt->name) { + add_assoc_string(errormessages,"nodename",ctxt->name,1); + } if (input != NULL) { add_assoc_long(errormessages,"line",input->line); add_assoc_long(errormessages,"col",input->col); |