cso: propogate one easy error - many more

This commit is contained in:
Keith Whitwell 2008-04-21 19:11:58 +01:00
parent d3db46eb82
commit 785831fc6f
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,8 @@ void * cso_take_state(struct cso_cache *sc,
struct cso_cache *cso_cache_create(void)
{
struct cso_cache *sc = MALLOC_STRUCT(cso_cache);
if (sc == NULL)
return NULL;
sc->max_size = 4096;
sc->blend_hash = cso_hash_create();