Potential crash fix.

This commit is contained in:
Jan Vidar Krey 2009-06-01 01:52:57 +02:00
parent 507f429035
commit 0eb91763fa

View File

@ -65,7 +65,10 @@ size_t hub_recvq_set(struct hub_recvq* q, void* buf, size_t bufsize)
}
if (!bufsize)
{
q->size = 0;
return 0;
}
q->buf = hub_malloc(bufsize);
if (!q->buf)