GNOME Bugzilla – Bug 760143
Patch : Redundant NULL check in preproc.c
Last modified: 2016-07-13 11:21:07 UTC
Created attachment 318236 [details] [review] Patch file Version 1.1.28 File : libexslt/preproc.c In function xsltNumberComp at line no 1416, NULL check is applied on "style" and "cur". statement "if ((style == NULL) || (cur == NULL))" is always true at line no 1416 because NULL check is already applied on style and cur in same function at line no 1403 and if style or cur is NULL, function will return at line no 1404. So style or cur can not be NULL at line no 1416. There are similar incidences in function xsltIfComp, xsltWhenComp and xsltForEachComp. Please check attached patch file(preproc1.patch) to remove redundant NULL checks.
Fixed with the following commit: https://git.gnome.org/browse/libxslt/commit/?id=db5596004b9d69194005451021ce63aa90761bbc