diff options
author | Keith Whitwell <[email protected]> | 2008-04-21 19:11:58 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-04-21 19:12:08 +0100 |
commit | 785831fc6fc56815d9637c7dd2acbcee6dfbbb0a (patch) | |
tree | 1a22e4e7e344ee5a7ad982c735ded170bbb78ccf | |
parent | d3db46eb8257c1b0cf823f1805ca00457be9aff3 (diff) |
cso: propogate one easy error - many more
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.c b/src/gallium/auxiliary/cso_cache/cso_cache.c index 18acab09674..f607528fdc7 100644 --- a/src/gallium/auxiliary/cso_cache/cso_cache.c +++ b/src/gallium/auxiliary/cso_cache/cso_cache.c @@ -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(); |