folderdata: modify the value of error check (prevent: 486649, 486650) 36/49436/1
authorJehun Lim <jehun.lim@samsung.com>
Tue, 13 Oct 2015 06:34:50 +0000 (15:34 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Tue, 13 Oct 2015 08:05:29 +0000 (17:05 +0900)
Change-Id: Ic26e8ace418004cfe7a718497f5da4ae385805dc
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
src/data/folderdata.c

index 201d7d7..339af9a 100644 (file)
@@ -552,7 +552,7 @@ static Eina_List *_get_group(void *handle, int type, void *data)
                return NULL;
        }
 
-       if (type < 0 || type > E_GROUP_FOLDER_MAX || !data) {
+       if (type < 0 || type >= E_GROUP_FOLDER_MAX || !data) {
                _ERR("invalid argument");
                return NULL;
        }