summaryrefslogtreecommitdiffstats
path: root/lasso/xml
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-22 13:57:29 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-22 13:57:29 +0000
commit4dd75f568d002cb44818f5cb253e37e88ecefe8b (patch)
tree7e58b3f5d66de632392764ba02b59f0c8d36c64f /lasso/xml
parentea7f83599b26ccc897cec73da1f495c3233b3131 (diff)
downloadlasso-4dd75f568d002cb44818f5cb253e37e88ecefe8b.tar.gz
lasso-4dd75f568d002cb44818f5cb253e37e88ecefe8b.tar.xz
lasso-4dd75f568d002cb44818f5cb253e37e88ecefe8b.zip
Fixed some compliation warnings
Diffstat (limited to 'lasso/xml')
-rw-r--r--lasso/xml/xml.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c
index 8ed2e079..c29c70d2 100644
--- a/lasso/xml/xml.c
+++ b/lasso/xml/xml.c
@@ -23,6 +23,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <string.h>
#include <lasso/xml/xml.h>
#include <lasso/xml/ds_signature.h>
#include <xmlsec/base64.h>
@@ -417,7 +418,7 @@ lasso_node_add_signature(LassoNode *node,
const xmlChar *private_key_file,
const xmlChar *certificate_file)
{
- g_return_if_fail(LASSO_IS_NODE(node));
+ g_return_val_if_fail(LASSO_IS_NODE(node), -1);
LassoNodeClass *class = LASSO_NODE_GET_CLASS(node);
return (class->add_signature(node, sign_method, private_key_file, certificate_file));
@@ -609,7 +610,7 @@ lasso_node_impl_export_to_query(LassoNode *node,
{
GString *query;
xmlDocPtr doc;
- xmlChar *str1, *str2, *str_escaped;
+ xmlChar *str1, *str2, *str_escaped = NULL;
gchar *unsigned_query, *ret;
g_return_val_if_fail (LASSO_IS_NODE(node), NULL);
@@ -718,8 +719,6 @@ static xmlChar *
lasso_node_impl_get_attr_value(LassoNode *node,
const xmlChar *name)
{
- LassoAttr *prop;
-
g_return_val_if_fail (LASSO_IS_NODE(node), NULL);
g_return_val_if_fail (name != NULL, NULL);
@@ -917,9 +916,9 @@ lasso_node_impl_verify_signature(LassoNode *node,
const gchar *certificate_file)
{
xmlDocPtr doc = xmlNewDoc("1.0");
- xmlNodePtr signature;
- xmlSecKeysMngrPtr mngr;
- xmlSecDSigCtxPtr dsigCtx;
+ xmlNodePtr signature = NULL;
+ xmlSecKeysMngrPtr mngr = NULL;
+ xmlSecDSigCtxPtr dsigCtx = NULL;
gint ret = -3;
g_return_val_if_fail (LASSO_IS_NODE(node), -4);
@@ -999,9 +998,7 @@ lasso_node_impl_add_child(LassoNode *node,
gboolean unbounded)
{
xmlNodePtr old_child = NULL;
- LassoNode *search_child = NULL;
const xmlChar *href = NULL;
- gint i;
g_return_if_fail (LASSO_IS_NODE(node));
g_return_if_fail (LASSO_IS_NODE(child));
@@ -1033,7 +1030,7 @@ lasso_node_impl_add_signature(LassoNode *node,
const xmlChar *private_key_file,
const xmlChar *certificate_file)
{
- LassoNode *signature;
+ LassoNode *signature = NULL;
gint ret = 0;
switch (sign_method) {