mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-08 21:42:07 +03:00
changed some variable names for warning cleanup when -ansi flag is not
* libexslt/crypto.c, libexslt/functions.c, libxslt/keys.c, libxslt/numbers.c, libxslt/pattern.c, libxslt/transform.c, libxslt/variables.c: changed some variable names for warning cleanup when -ansi flag is not present. * libxslt/namespaces.c: fixed potential NULL pointer reference pointed out by Dennis Dams (bug 156187)
This commit is contained in:
@@ -455,7 +455,7 @@ static xsltElemPreCompPtr
|
||||
exsltFuncResultComp (xsltStylesheetPtr style, xmlNodePtr inst,
|
||||
xsltTransformFunction function) {
|
||||
xmlNodePtr test;
|
||||
xmlChar *select;
|
||||
xmlChar *sel;
|
||||
exsltFuncResultPreComp *ret;
|
||||
|
||||
/*
|
||||
@@ -525,10 +525,10 @@ exsltFuncResultComp (xsltStylesheetPtr style, xmlNodePtr inst,
|
||||
/*
|
||||
* Precompute the select attribute
|
||||
*/
|
||||
select = xmlGetNsProp(inst, (const xmlChar *) "select", NULL);
|
||||
if (select != NULL) {
|
||||
ret->select = xmlXPathCompile (select);
|
||||
xmlFree(select);
|
||||
sel = xmlGetNsProp(inst, (const xmlChar *) "select", NULL);
|
||||
if (sel != NULL) {
|
||||
ret->select = xmlXPathCompile (sel);
|
||||
xmlFree(sel);
|
||||
}
|
||||
/*
|
||||
* Precompute the namespace list
|
||||
|
Reference in New Issue
Block a user