Missing variable initialization

If name_id s unconditonally dereferenced in the cleanup code.
If it is not initialized it may cause segfaults or other misbehaviors.

License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
This commit is contained in:
Simo Sorce 2014-07-31 13:36:03 -04:00 committed by Benjamin Dauvergne
parent c4989dacfa
commit 23d961fe71
1 changed files with 1 additions and 1 deletions

View File

@ -858,7 +858,7 @@ init_from_xml_nid_and_session_index(LassoNode *node, xmlNode *nid_and_session_in
xmlChar *provider_id = NULL;
xmlChar *assertion_id = NULL;
xmlNode *nid;
LassoNode *name_id;
LassoNode *name_id = NULL;
struct _NidAndSessionIndex *nid_and_session_index;
provider_id = xmlGetProp(nid_and_session_index_node, BAD_CAST PROVIDER_ID);