summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:29:38 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-10-18 13:29:38 -0400
commitebcafd424946f0b1d2504b72c939b26b4df9afff (patch)
tree5690db8bb8acb59d179474351bb900b32ac853e0 /src
parentc81e4d508099525ff0098a24296cd0278a140abd (diff)
evas_vg/svg: fix null deref
Summary: CID 1405672 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10446
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
index 97f87c7..313d3ee 100644
--- a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
+++ b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
@@ -197,7 +197,7 @@ _to_opacity(const char *str)
197 int a = 0; 197 int a = 0;
198 double opacity = eina_convert_strtod_c(str, &end); 198 double opacity = eina_convert_strtod_c(str, &end);
199 199
200 if (*end == '\0') 200 if (end && (*end == '\0'))
201 a = lrint(opacity * 255); 201 a = lrint(opacity * 255);
202 return a; 202 return a;
203} 203}