projects
/
yaz-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:
6bc9db9
)
Add one call to yaz_mutex_destroy in test
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 2010 10:28:16 +0000
(11:28 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 2010 10:28:16 +0000
(11:28 +0100)
test/test_mutex.c
patch
|
blob
|
history
diff --git
a/test/test_mutex.c
b/test/test_mutex.c
index
66d6481
..
843ea8f
100644
(file)
--- a/
test/test_mutex.c
+++ b/
test/test_mutex.c
@@
-28,6
+28,8
@@
static void tst(void)
yaz_mutex_leave(p);
yaz_mutex_destroy(&p);
YAZ_CHECK(p == 0);
+
+ yaz_mutex_destroy(&p); /* OK to "destroy" NULL handle */
}
int main (int argc, char **argv)