coreaudio_set_nonblock_state - check if pointer is non-NULL

This commit is contained in:
twinaphex 2014-10-03 17:00:35 +02:00
parent e306553cea
commit e57963a394

View File

@ -367,7 +367,8 @@ static ssize_t coreaudio_write(void *data, const void *buf_, size_t size)
static void coreaudio_set_nonblock_state(void *data, bool state)
{
coreaudio_t *dev = (coreaudio_t*)data;
dev->nonblock = state;
if (dev)
dev->nonblock = state;
}
static bool coreaudio_alive(void *data)