forked from enlightenment/efl
ector: fix null pointer dereference issue
Summary: Fix Coverity CID1293003 Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3220 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
85f8daac6d
commit
96f936e6d3
|
@ -50,6 +50,9 @@ _blend_gradient(int count, const SW_FT_Span *spans, void *user_data)
|
|||
if (data->type == LinearGradient) fetchfunc = &fetch_linear_gradient;
|
||||
if (data->type == RadialGradient) fetchfunc = &fetch_radial_gradient;
|
||||
|
||||
if (!fetchfunc)
|
||||
return;
|
||||
|
||||
comp_func = ector_comp_func_span_get(data->op, data->mul_col, data->gradient->alpha);
|
||||
|
||||
// move to the offset location
|
||||
|
|
Loading…
Reference in New Issue