theme: hecking the return value of a function strchr 83/166683/2
authorMinchul Lee <slotus.lee@samsung.com>
Mon, 8 May 2017 08:17:17 +0000 (17:17 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 11 Jan 2018 11:44:43 +0000 (11:44 +0000)
Change-Id: I06d6206d04d6a77efd417ac401f39d9cbf7ad657
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
src/lib/elementary/elm_theme.c

index 4043e11..6edec00 100644 (file)
@@ -821,7 +821,10 @@ elm_theme_name_available_list_new(void)
                {
                   th = strdup(file);
                   s = strrchr(th, '.');
-                  *s = 0;
+//TIZEN_ONLY(20170508): null checking the return value of a function strrchr
+                  if (s)
+//
+                    *s = 0;
                   list = eina_list_append(list, th);
                }
           }
@@ -841,7 +844,10 @@ elm_theme_name_available_list_new(void)
 
                   th = strdup(file);
                   s = strrchr(th, '.');
-                  *s = 0;
+//TIZEN_ONLY(20170508): null checking the return value of a function strrchr
+                  if (s)
+//
+                    *s = 0;
                   dupp = 0;
                   EINA_LIST_FOREACH(list, l, s)
                     {