a bit late; fixed use of unitialized variables (-Wuninitialized needs -O)

This commit is contained in:
Frédéric Péters 2004-09-06 17:49:19 +00:00
parent 81d1e6b1dd
commit 2e068417cf
5 changed files with 10 additions and 9 deletions

View File

@ -64,7 +64,7 @@ lasso_defederation_build_notification_msg(LassoDefederation *defederation)
{
LassoProfile *profile;
LassoProvider *provider;
xmlChar *protocolProfile;
xmlChar *protocolProfile = NULL;
gchar *url = NULL, *query = NULL;
lassoProviderType remote_provider_type;
gint ret = 0;
@ -192,7 +192,7 @@ lasso_defederation_init_notification(LassoDefederation *defederation,
{
LassoProfile *profile;
LassoProvider *provider;
LassoFederation *federation;
LassoFederation *federation = NULL;
LassoNode *nameIdentifier = NULL;
xmlChar *content = NULL, *nameQualifier = NULL, *format = NULL;
xmlChar *federationTerminationProtocolProfile;
@ -442,8 +442,8 @@ lasso_defederation_validate_notification(LassoDefederation *defederation)
{
LassoProfile *profile;
LassoProvider *provider;
LassoFederation *federation;
LassoNode *nameIdentifier;
LassoFederation *federation = NULL;
LassoNode *nameIdentifier = NULL;
gint ret = 0;
gint remote_provider_type;

View File

@ -133,7 +133,7 @@ lasso_login_process_federation(LassoLogin *login)
{
LassoFederation *federation;
LassoNode *nameIdentifier;
xmlChar *id, *nameIDPolicy, *consent;
xmlChar *id, *nameIDPolicy, *consent = NULL;
gint ret = 0;
GError *err = NULL;
@ -327,7 +327,7 @@ gint
lasso_login_accept_sso(LassoLogin *login)
{
LassoNode *assertion = NULL;
LassoNode *ni;
LassoNode *ni = NULL;
LassoNode *idp_ni, *idp_ni_copy = NULL;
LassoFederation *federation = NULL;
gint ret = 0;
@ -1386,7 +1386,7 @@ lasso_login_new_from_dump(LassoServer *server,
gchar *dump)
{
LassoLogin *login;
LassoNode *node_dump, *request_node, *response_node;
LassoNode *node_dump, *request_node = NULL, *response_node = NULL;
gchar *protocolProfile, *export, *type;
/* nico : assertion vars */

View File

@ -844,7 +844,7 @@ gint
lasso_logout_validate_request(LassoLogout *logout)
{
LassoProfile *profile;
LassoFederation *federation;
LassoFederation *federation = NULL;
LassoNode *nameIdentifier, *assertion;
LassoNode *statusCode;
LassoNodeClass *statusCode_class;

View File

@ -263,7 +263,6 @@ lasso_session_get_provider_index(LassoSession *session,
gchar *providerID;
g_return_val_if_fail(session != NULL, NULL);
g_return_val_if_fail(providerID != NULL, NULL);
/* verify index is valid */
if ( (session->providerIDs == NULL) && (session->providerIDs->len < 0) ) {

View File

@ -1430,6 +1430,8 @@ lasso_node_impl_add_signature_tmpl(LassoNode *node,
signature = xmlSecTmplSignatureCreate(doc, xmlSecTransformExclC14NId,
xmlSecTransformDsaSha1Id, NULL);
break;
default:
signature = NULL;
}
if (signature == NULL) {