mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
reset unused lifo slots
This commit is contained in:
parent
1dac115c68
commit
6021b9f36a
@ -69,6 +69,7 @@ int lifo_get(int *array)
|
||||
if (head != -1) {
|
||||
array[0] = array[head + 1];
|
||||
}
|
||||
array[head+1] = -1;
|
||||
|
||||
return head;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user