summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Ellur <vivek.ellur@samsung.com>2015-10-30 06:39:15 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-10-31 02:12:06 +0100
commit96f936e6d371421809b2f8804b029f966e2b14d7 (patch)
tree9d0735abf91a71e6ff51c55834732bd60e0748a4
parent85f8daac6d3554f980d8737ee7b904d6a5be203d (diff)
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>
-rw-r--r--src/lib/ector/software/ector_software_rasterizer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ector/software/ector_software_rasterizer.c b/src/lib/ector/software/ector_software_rasterizer.c
index b436eed9df..0cb74a017f 100644
--- a/src/lib/ector/software/ector_software_rasterizer.c
+++ b/src/lib/ector/software/ector_software_rasterizer.c
@@ -50,6 +50,9 @@ _blend_gradient(int count, const SW_FT_Span *spans, void *user_data)
50 if (data->type == LinearGradient) fetchfunc = &fetch_linear_gradient; 50 if (data->type == LinearGradient) fetchfunc = &fetch_linear_gradient;
51 if (data->type == RadialGradient) fetchfunc = &fetch_radial_gradient; 51 if (data->type == RadialGradient) fetchfunc = &fetch_radial_gradient;
52 52
53 if (!fetchfunc)
54 return;
55
53 comp_func = ector_comp_func_span_get(data->op, data->mul_col, data->gradient->alpha); 56 comp_func = ector_comp_func_span_get(data->op, data->mul_col, data->gradient->alpha);
54 57
55 // move to the offset location 58 // move to the offset location