Skip to content
Snippets Groups Projects
Commit eac60d66 authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

make reset of freed slots optional

parent 1a99a44e
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,12 @@ int lifo_get(int *array)
if (head != -1) {
array[0] = array[head + 1];
}
#if DEVELHELP
/* make sure a double insert does not result in an infinite
* resource of values */
array[head+1] = -1;
#endif
DEBUG("lifo_get: returning %i\n", head);
return head;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment