projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Documentation for mutex util
[yaz-moved-to-github.git]
/
test
/
test_mutex.c
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)