Skip to content
Snippets Groups Projects
Commit da0113ce authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

add sanity check in List_Pop
parent d0f4ef26
No related branches found
No related tags found
No related merge requests found
// $Id: List.cpp,v 1.29 2004-02-07 01:40:17 geuzaine Exp $
// $Id: List.cpp,v 1.30 2004-05-18 20:51:31 geuzaine Exp $
//
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
//
......@@ -155,6 +155,7 @@ void List_Put(List_T * liste, int index, void *data)
void List_Pop(List_T * liste)
{
if(liste->n > 0)
liste->n--;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment