diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2011-08-08 12:29:32 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2011-08-08 12:29:32 +0000 |
commit | e2e96913bf8628cb6bbf75cef5c62c714776c7ba (patch) | |
tree | 019d6b005cb864cb6191a24bcf0c6f1d37aa8874 /ext/dom/php_dom.c | |
parent | 92d68c62af297e1cf50b8b720f988e79224b3c4b (diff) | |
download | php-git-e2e96913bf8628cb6bbf75cef5c62c714776c7ba.tar.gz |
Deadcode & sizeof fix for issues found by coverity
(different patch for 5.4+ will follow shortly)
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r-- | ext/dom/php_dom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index cf9b79ba79..f8ee4265ce 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -212,7 +212,7 @@ int dom_set_doc_classmap(php_libxml_ref_obj *document, zend_class_entry *basece, zend_hash_init(doc_props->classmap, 0, NULL, NULL, 0); } if (ce) { - return zend_hash_update(doc_props->classmap, basece->name, basece->name_length + 1, &ce, sizeof(ce), NULL); + return zend_hash_update(doc_props->classmap, basece->name, basece->name_length + 1, &ce, sizeof(zend_class_entry *), NULL); } else { zend_hash_del(doc_props->classmap, basece->name, basece->name_length + 1); } |