Patch level :2.0 440

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :sistemata gestione liste di stringhe (inchiodava la conversione archivi)


git-svn-id: svn://10.65.10.50/trunk@10967 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2003-04-02 15:11:53 +00:00
parent c1d2d3be53
commit aee9da7113

View File

@ -3173,7 +3173,7 @@ BOOLEAN xvt_slist_add_at_elt(SLIST list, SLIST_ELT e, const char *sx, long data)
item->data = data;
item->next = NULL;
SLIST_ELT last = NULL;
SLIST_ELT last = NULL;
if (e != NULL)
{
for (SLIST_ELT i = list->head; i; i = (SLIST_ELT)i->next)
@ -3183,8 +3183,11 @@ BOOLEAN xvt_slist_add_at_elt(SLIST list, SLIST_ELT e, const char *sx, long data)
break;
}
}
if (last == NULL) // Empty List
if (last == NULL)
{
item->next = list->head;
list->head = item;
}
else
{
item->next = last->next;