forked from enlightenment/efl
eina freeq - fix possible seg with NULL freeq and pattern fill logic
this fixes handling of a NULL freeq handle - found by coverity. fixes CID 1369021
This commit is contained in:
parent
50ab088f79
commit
34883a12e7
|
@ -363,7 +363,8 @@ eina_freeq_ptr_add(Eina_FreeQ *fq,
|
|||
|
||||
if (!ptr) return;
|
||||
if (!free_func) free_func = free;
|
||||
if (!fq->postponed && (size < _eina_freeq_fillpat_max) && (size > 0))
|
||||
if ((((fq) && !fq->postponed) || (!fq)) &&
|
||||
(size < _eina_freeq_fillpat_max) && (size > 0))
|
||||
_eina_freeq_fill_do(ptr, size);
|
||||
|
||||
if (!fq || fq->bypass)
|
||||
|
|
Loading…
Reference in New Issue