diff --git a/DataStr/List.cpp b/DataStr/List.cpp index ed1b0989b5379acea92923a795b7e5c2cbf002ea..c41069e7f1a61037c6a60e5c69fe44f6243490da 100644 --- a/DataStr/List.cpp +++ b/DataStr/List.cpp @@ -1,4 +1,4 @@ -// $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,7 +155,8 @@ void List_Put(List_T * liste, int index, void *data) void List_Pop(List_T * liste) { - liste->n--; + if(liste->n > 0) + liste->n--; } void *List_Pointer(List_T * liste, int index)