evas: let's be more resistant even with things that should never happen.

Fix CID 1193212.
This commit is contained in:
Cedric BAIL 2014-03-20 16:53:13 +09:00
parent f26b370584
commit 837391c5da
1 changed files with 1 additions and 0 deletions

View File

@ -372,6 +372,7 @@ _evas_gl_common_version_check()
return 0;
tmp = strchr(version, '.');
if (!tmp) return 0;
/* the first '.' always exists */
*tmp = '\0';
major = atoi(version);