Fix shenanigans.

This commit is contained in:
Themaister 2011-06-09 23:17:10 +02:00
parent 576894e0e8
commit 8c1db1c407

View File

@ -72,6 +72,9 @@ static void* __xa_init(const char* device, unsigned rate, unsigned latency)
if (!init_lib())
return NULL;
if (latency < 8)
latency = 8; // Do not allow shenanigans.
xa_t *xa = calloc(1, sizeof(xa_t));
if (xa == NULL)
return NULL;