gallium: Detect if a null buffer is passed.

This commit is contained in:
José Fonseca
2007-12-18 18:59:49 +00:00
parent af51d188c3
commit 39b8303d4a

View File

@@ -230,6 +230,9 @@ fenced_buffer_create(struct fenced_buffer_list *fenced_list,
{
struct fenced_buffer *buf;
if(!buffer)
return NULL;
buf = (struct fenced_buffer *)calloc(1, sizeof(struct fenced_buffer));
if(!buf)
return NULL;