Fixed potential segfault
This commit is contained in:
parent
754dadd12f
commit
641fc48858
1 changed files with 3 additions and 3 deletions
|
|
@ -285,10 +285,10 @@ void list_insert(IntList list, int value) {
|
|||
list->tail->next = newNode;
|
||||
newNode->prev = list->tail;
|
||||
}
|
||||
}
|
||||
|
||||
list->tail = newNode;
|
||||
list->size++;
|
||||
list->tail = newNode;
|
||||
list->size++;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue