[libxslt] Remove redundant NULL check in xsltNumberComp
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Remove redundant NULL check in xsltNumberComp
- Date: Wed, 13 Jul 2016 11:19:54 +0000 (UTC)
commit db5596004b9d69194005451021ce63aa90761bbc
Author: mahendra.n <mahendra n samsung com>
Date: Wed Jul 13 13:16:51 2016 +0200
Remove redundant NULL check in xsltNumberComp
Fixes bug #760143:
https://bugzilla.gnome.org/show_bug.cgi?id=760143
libxslt/preproc.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/libxslt/preproc.c b/libxslt/preproc.c
index ea7a3ee..9a7de53 100644
--- a/libxslt/preproc.c
+++ b/libxslt/preproc.c
@@ -1418,9 +1418,6 @@ xsltNumberComp(xsltStylesheetPtr style, xmlNodePtr cur) {
return;
cur->psvi = comp;
- if ((style == NULL) || (cur == NULL))
- return;
-
comp->numdata.doc = cur->doc;
comp->numdata.node = cur;
comp->numdata.value = xsltGetCNsProp(style, cur, (const xmlChar *)"value",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]