After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 516483 - Error in xsltExtInitTest()
Error in xsltExtInitTest()
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.22
Other All
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2008-02-14 16:09 UTC by Tony Graham
Modified: 2008-02-15 17:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tony Graham 2008-02-14 16:09:23 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.
Comment 1 William M. Brack 2008-02-15 17:30:49 UTC
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.