evas: let's be more resistant even with things that should never happen.
authorCedric BAIL <cedric.bail@samsung.com>
Thu, 20 Mar 2014 07:53:13 +0000 (16:53 +0900)
committerCedric BAIL <cedric.bail@samsung.com>
Thu, 20 Mar 2014 07:53:13 +0000 (16:53 +0900)
Fix CID 1193212.

src/modules/evas/engines/gl_common/evas_gl_context.c

index f044a2f..79e33fe 100644 (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);