summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2013-11-08 10:45:20 +0000
committerVincent Sanders <vince@netsurf-browser.org>2013-11-08 10:45:20 +0000
commit8a275902a7bf5118e0c08262bd64a48b20824d1b (patch)
tree0f8e02ff39d6927623c27b8ef57d080897e33670
parentc00dc3f954d5fc7a9305de2bb5bf01fa894863eb (diff)
downloadlibdom-8a275902a7bf5118e0c08262bd64a48b20824d1b.tar.gz
libdom-8a275902a7bf5118e0c08262bd64a48b20824d1b.tar.bz2
remove unecessary null check (coverity 1127087)
-rw-r--r--src/html/html_document.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index e248e17..fb880cf 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -259,9 +259,7 @@ dom_exception _dom_html_document_create_element_ns(dom_document *doc,
namespace, prefix, (dom_html_element **)result);
/* Tidy up */
- if (localname != NULL) {
- dom_string_unref(localname);
- }
+ dom_string_unref(localname);
if (prefix != NULL) {
dom_string_unref(prefix);