From 6c0e77c643e96436d85aebb9195c83cb403c25fa Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 9 Nov 2008 17:29:15 +0000 Subject: Return errors from dictionary constructor/destructor. Fix commentary copied from libcss svn path=/trunk/hubbub/; revision=5663 --- test/dict.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/dict.c b/test/dict.c index 0c2e93e..9ba05fd 100644 --- a/test/dict.c +++ b/test/dict.c @@ -18,8 +18,7 @@ int main(int argc, char **argv) UNUSED(argc); UNUSED(argv); - dict = hubbub_dict_create(myrealloc, NULL); - assert(dict != NULL); + assert(hubbub_dict_create(myrealloc, NULL, &dict) == HUBBUB_OK); assert(hubbub_dict_insert(dict, "Hello", (const void *) 123) == HUBBUB_OK); -- cgit v1.2.3