diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-09 17:29:15 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-09 17:29:15 +0000 |
commit | 6c0e77c643e96436d85aebb9195c83cb403c25fa (patch) | |
tree | 647f8a07a77abaf2cb1e692112f7777a3dd44de5 /src/tokeniser | |
parent | f3c6e30f43c8e9feec891d68cc3eee99c3ef6264 (diff) | |
download | libhubbub-6c0e77c643e96436d85aebb9195c83cb403c25fa.tar.gz libhubbub-6c0e77c643e96436d85aebb9195c83cb403c25fa.tar.bz2 |
Return errors from dictionary constructor/destructor.
Fix commentary copied from libcss
svn path=/trunk/hubbub/; revision=5663
Diffstat (limited to 'src/tokeniser')
-rw-r--r-- | src/tokeniser/entities.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tokeniser/entities.c b/src/tokeniser/entities.c index 7cf1e56..23756a6 100644 --- a/src/tokeniser/entities.c +++ b/src/tokeniser/entities.c @@ -2171,9 +2171,9 @@ hubbub_error hubbub_entities_create(hubbub_alloc alloc, void *pw) if (alloc == NULL) return HUBBUB_BADPARM; - dict = hubbub_dict_create(alloc, pw); - if (dict == NULL) - return HUBBUB_NOMEM; + error = hubbub_dict_create(alloc, pw, &dict); + if (error != HUBBUB_OK) + return error; for (i = 0; i < sizeof(entities) / sizeof(entities[0]); i++) { error = hubbub_dict_insert(dict, entities[i].name, |