From 8a275902a7bf5118e0c08262bd64a48b20824d1b Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 8 Nov 2013 10:45:20 +0000 Subject: remove unecessary null check (coverity 1127087) --- src/html/html_document.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3