This commit is contained in:
Pietro Gagliardi 2015-02-14 17:31:36 -05:00
parent 345b4b4263
commit 728bd91523
1 changed files with 2 additions and 1 deletions

View File

@ -441,7 +441,8 @@ printf("new ta %p\n", ta);
printf("before add:"); list(t);
#endif
ta->next = t->firstAcc;
t->firstAcc->prev = ta;
if (t->firstAcc != NULL)
t->firstAcc->prev = ta;
t->firstAcc = ta;
#ifdef TABLE_DEBUG_LINKEDLIST
printf("after add:"); list(t);