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
wrbuf_destroy allows NULL WRBUF passed to it
[yaz-moved-to-github.git]
/
test
/
tstwrbuf.c
diff --git
a/test/tstwrbuf.c
b/test/tstwrbuf.c
index
8b94634
..
af06e40
100644
(file)
--- a/
test/tstwrbuf.c
+++ b/
test/tstwrbuf.c
@@
-12,10
+12,13
@@
static void tstwrbuf(void)
{
int step;
- WRBUF wr = wrbuf_alloc();
+ WRBUF wr;
- YAZ_CHECK(wr);
+ wr = 0;
+ wrbuf_destroy(wr);
+ wr = wrbuf_alloc();
+ YAZ_CHECK(wr);
wrbuf_destroy(wr);
wr = wrbuf_alloc();