add: if ( imputation -> no_derniere_sous_imputation != sous_ib_max ) imputation -> no_derniere_sous_imputation = sous_ib_max;
context: gboolean recuperation_imputations_xml ( xmlNodePtr node_imputations ){    while ( node_imputations )    {	/* on va recuperer ici les generalites des imputations */	if ( !strcmp ( node_imputations -> name,		       "Generalites" ))	{	    xmlNodePtr node_generalites;	    node_generalites = node_imputations -> children;	    while ( node_generalites )	    {		if ( !strcmp ( node_generalites -> name,			       "Nb_imputations" ))		    nb_enregistrements_imputations = my_atoi ( xmlNodeGetContent ( node_generalites ));		if ( !strcmp ( node_generalites -> name,			       "No_derniere_imputation" ))		    no_derniere_imputation = my_atoi ( xmlNodeGetContent ( node_generalites ));		node_generalites = node_generalites -> next;	    }	}	/* on va recuperer ici les imputations */	if ( !strcmp ( node_imputations -> name,		       "Detail_des_imputations" ))	{	    xmlNodePtr node_detail;	    liste_struct_imputation = NULL;	    node_detail = node_imputations -> children;	    while ( node_detail )	    {		struct struct_imputation *imputation;		xmlNodePtr node_sous_imputation;		imputation = calloc ( 1,				      sizeof ( struct struct_imputation ) );		if ( node_detail -> type != XML_TEXT_NODE )		{		    imputation -> no_imputation = my_atoi ( xmlGetProp ( node_detail,									 "No" ));		    imputation -> nom_imputation = xmlGetProp ( node_detail,								"Nom" );		    imputation -> type_imputation = my_atoi ( xmlGetProp ( node_detail,									   "Type" ));		    imputation -> no_derniere_sous_imputation = my_atoi ( xmlGetProp ( node_detail,										       "No_derniere_sous_imputation" ));		    /*  pour chaque categorie, on recupère les sous-categories */		    imputation -> liste_sous_imputation = NULL;		    node_sous_imputation = node_detail -> children;		    while ( node_sous_imputation )		    {			struct struct_sous_imputation *sous_imputation;			if ( node_sous_imputation -> type != XML_TEXT_NODE )			{			    sous_imputation = calloc ( 1, sizeof ( struct struct_sous_imputation ) );			    sous_imputation -> no_sous_imputation = my_atoi ( xmlGetProp ( node_sous_imputation,											   "No" ));			    sous_imputation -> nom_sous_imputation = xmlGetProp ( node_sous_imputation,										  "Nom" );			    imputation -> liste_sous_imputation = g_slist_append ( imputation -> liste_sous_imputation,										   sous_imputation );			}			node_sous_imputation = node_sous_imputation -> next;		    }		    liste_struct_imputation = g_slist_append ( liste_struct_imputation,							       imputation );		}		node_detail = node_detail -> next;	    }	}	node_imputations = node_imputations -> next;    }    return TRUE;}