Potential crash fix.
This commit is contained in:
parent
507f429035
commit
0eb91763fa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue