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
This commit is contained in:
Mike Blumenkrantz 2019-10-18 13:29:38 -04:00
parent c81e4d5080
commit ebcafd4249
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ _to_opacity(const char *str)
int a = 0;
double opacity = eina_convert_strtod_c(str, &end);
if (*end == '\0')
if (end && (*end == '\0'))
a = lrint(opacity * 255);
return a;
}