projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06d3039
)
Allow dict_close of 0 pointer
author
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 26 Mar 2006 14:02:49 +0000
(14:02 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 26 Mar 2006 14:02:49 +0000
(14:02 +0000)
dict/close.c
patch
|
blob
|
history
diff --git
a/dict/close.c
b/dict/close.c
index
2236e34
..
be53165
100644
(file)
--- 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)
{