diff --git a/core/lifo.c b/core/lifo.c index 7a9f252a1e..b95c3a8e8c 100644 --- a/core/lifo.c +++ b/core/lifo.c @@ -69,6 +69,7 @@ int lifo_get(int *array) if (head != -1) { array[0] = array[head + 1]; } + array[head+1] = -1; return head; }