summaryrefslogtreecommitdiff
path: root/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c')
-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 97f87c7e96..313d3eed15 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}