Summary: If theme doesn't have version data, `version` can be NULL.
Reviewers: zmike
Reviewed By: zmike
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10146
if (!version)
ERR("Widget(%p) with type '%s' is not providing a version in its theme!", obj,
efl_class_name_get(efl_class_get(obj)));
- errno = 0;
- sd->version = strtoul(version, NULL, 10);
- if (errno)
+ else
{
- ERR("Widget(%p) with type '%s' is not providing a valid version in its theme!", obj,
- efl_class_name_get(efl_class_get(obj)));
- sd->version = 0;
+ errno = 0;
+ sd->version = strtoul(version, NULL, 10);
+ if (errno)
+ {
+ ERR("Widget(%p) with type '%s' is not providing a valid version in its theme!", obj,
+ efl_class_name_get(efl_class_get(obj)));
+ sd->version = 0;
+ }
}
}
if (!version)