From aee9da711350a3c29ad367423cfed81617e3f51c Mon Sep 17 00:00:00 2001 From: luca Date: Wed, 2 Apr 2003 15:11:53 +0000 Subject: [PATCH] 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 --- xvaga/xvaga.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xvaga/xvaga.cpp b/xvaga/xvaga.cpp index 00e5948e6..cc9b969aa 100755 --- a/xvaga/xvaga.cpp +++ b/xvaga/xvaga.cpp @@ -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;