[libxslt] Fix return value of xsltRegisterExtModuleElement
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix return value of xsltRegisterExtModuleElement
- Date: Tue, 25 Feb 2014 14:27:25 +0000 (UTC)
commit 9af8ca0e0e8c7f3e53d12122ee79e21723107671
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Feb 25 15:05:20 2014 +0100
Fix return value of xsltRegisterExtModuleElement
xsltRegisterExtModuleElement returned success if xsltNewExtElement
failed. Detected by -Wunused-but-set-variable.
libxslt/extensions.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libxslt/extensions.c b/libxslt/extensions.c
index 30c3368..5ad73cb 100644
--- a/libxslt/extensions.c
+++ b/libxslt/extensions.c
@@ -1622,7 +1622,7 @@ xsltRegisterExtModuleElement(const xmlChar * name, const xmlChar * URI,
xsltPreComputeFunction precomp,
xsltTransformFunction transform)
{
- int ret;
+ int ret = 0;
xsltExtElementPtr ext;
@@ -1648,7 +1648,7 @@ xsltRegisterExtModuleElement(const xmlChar * name, const xmlChar * URI,
done:
xmlMutexUnlock(xsltExtMutex);
- return (0);
+ return (ret);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]