forked from enlightenment/efl
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:
parent
c81e4d5080
commit
ebcafd4249
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue