X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fclose.c;h=be53165a32ad31d833e9844a845f77b8964fb0ae;hb=07daef4fb241a9106fb995bb87a823708babcb10;hp=2236e3471b77c46f0653f1235aade890bcf1fed2;hpb=6c9fcd3b5d3108702fa1ffc92dab4ab6060f9a19;p=idzebra-moved-to-github.git diff --git a/dict/close.c b/dict/close.c index 2236e34..be53165 100644 --- a/dict/close.c +++ b/dict/close.c @@ -1,4 +1,4 @@ -/* $Id: close.c,v 1.9 2005-01-15 19:38:19 adam Exp $ +/* $Id: close.c,v 1.10 2006-03-26 14:02:49 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -31,7 +31,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA int dict_close (Dict dict) { - assert (dict); + if (!dict) + return 0; if (dict->rw) {