summaryrefslogtreecommitdiff
path: root/test/dict.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-09 20:06:20 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-09 20:06:20 +0000
commitcfad5e411a897bd30bf9f6014e58a25f1ecb69da (patch)
tree90094db87e485614742420dfa3ab7279629ce39d /test/dict.c
parent49fef60bc607ebb56b979b78f157b31619fea2eb (diff)
downloadlibparserutils-cfad5e411a897bd30bf9f6014e58a25f1ecb69da.tar.gz
libparserutils-cfad5e411a897bd30bf9f6014e58a25f1ecb69da.tar.bz2
Return errors from dictionary constructor/destructor
svn path=/trunk/libparserutils/; revision=5673
Diffstat (limited to 'test/dict.c')
-rw-r--r--test/dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dict.c b/test/dict.c
index ee8c597..cb25a8e 100644
--- a/test/dict.c
+++ b/test/dict.c
@@ -29,8 +29,8 @@ int main(int argc, char **argv)
}
buf[sizeof(buf) - 1] = '\0';
- dict = parserutils_dict_create(myrealloc, NULL);
- assert(dict != NULL);
+ assert(parserutils_dict_create(myrealloc, NULL, &dict) ==
+ PARSERUTILS_OK);
for (int i = 0; i < (int) sizeof(buf); i++) {
uint8_t *s = buf;