Merge branch 'tizen' into tizen_3.0 07/94907/1 accepted/tizen/3.0/common/20161114.081143 accepted/tizen/3.0/ivi/20161109.124722 accepted/tizen/3.0/mobile/20161109.124318 accepted/tizen/3.0/tv/20161109.124533 accepted/tizen/3.0/wearable/20161109.124636 submit/tizen_3.0/20161108.053851 submit/tizen_3.0_common/20161110.084657
authorJiyong Min <jiyong.min@samsung.com>
Wed, 2 Nov 2016 03:34:30 +0000 (12:34 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Wed, 2 Nov 2016 03:35:16 +0000 (12:35 +0900)
Change-Id: I2a39f239673f340d29187d47a2b831cb344e9b6a
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
src/common/media-svc-media-folder.c

index bbf80fe..c5eefa2 100755 (executable)
@@ -418,7 +418,7 @@ int _media_svc_get_all_folders(sqlite3 *handle, char *start_path, char ***folder
 
        media_svc_debug("QEURY OK");
 
-       while (1) {
+       while (idx < cnt) {
                (*folder_list)[idx] = g_strdup((char *)sqlite3_column_text(sql_stmt, 0));
                (*modified_time_list)[idx] = (int)sqlite3_column_int(sql_stmt, 1);