GNOME Bugzilla – Bug 516483
Error in xsltExtInitTest()
Last modified: 2008-02-15 17:30:49 UTC
Please describe the problem: In xsltExtInitTest(), the return value of xsltStyleGetExtData() is never used: if (testStyleData == NULL) { xsltGenericDebug(xsltGenericErrorContext, "xsltExtInitTest: not initialized," " calling xsltStyleGetExtData\n"); xsltStyleGetExtData(ctxt->style, URI); if (testStyleData == NULL) { xsltTransformError(ctxt, NULL, NULL, "xsltExtInitTest: not initialized\n"); return (NULL); } } Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information: Because 'testStyleData == NULL' is never true with the current tests, the problem code is not being used.
Your observation is correct; however, this clause is a test to confirm that testStyleData is correctly set, and since the initialization of the test function does that, the statements contained within the are never executed. Still, I fixed it to do what was intended - fixed code is in SVN. Thanks for the report.