Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Unified Diff: third_party/libxslt/libxslt/keys.c

Issue 661058: libxslt update (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libxslt/libxslt/imports.c ('k') | third_party/libxslt/libxslt/libxslt.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libxslt/libxslt/keys.c
===================================================================
--- third_party/libxslt/libxslt/keys.c (revision 39981)
+++ third_party/libxslt/libxslt/keys.c (working copy)
@@ -474,7 +474,7 @@
const xmlChar *nameURI)
{
xsltStylesheetPtr style;
- xsltKeyDefPtr keyd;
+ xsltKeyDefPtr keyd = NULL;
int found = 0;
#ifdef KEY_INIT_DEBUG
@@ -504,7 +504,7 @@
XSLT_TRACE(ctxt,XSLT_TRACE_KEYS,xsltGenericDebug(xsltGenericDebugContext,
"xsltInitDocKeyTable: did not found %s\n", name));
#endif
- xsltTransformError(ctxt, NULL, keyd->inst,
+ xsltTransformError(ctxt, NULL, keyd? keyd->inst : NULL,
"Failed to find key definition for %s\n", name);
ctxt->state = XSLT_STATE_STOPPED;
return(-1);
@@ -517,10 +517,13 @@
/**
* xsltInitAllDocKeys:
+ * @ctxt: transformation context
*
* INTERNAL ROUTINE ONLY
*
* Check if any keys on the current document need to be computed
+ *
+ * Returns 0 in case of success, -1 in case of failure
*/
int
xsltInitAllDocKeys(xsltTransformContextPtr ctxt)
« no previous file with comments | « third_party/libxslt/libxslt/imports.c ('k') | third_party/libxslt/libxslt/libxslt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698