Fix wrong behavior of shortcut_db_get_list 37/142937/1
authorMyungki Lee <mk5004.lee@samsung.com>
Tue, 8 Aug 2017 02:42:29 +0000 (11:42 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Tue, 8 Aug 2017 02:44:18 +0000 (11:44 +0900)
Change-Id: I83b8952c34ef89ae5d89087ab5c1ecbf098e736b
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
lib/src/shortcut_db.c

index a259bfc..4ce7abb 100755 (executable)
@@ -293,7 +293,7 @@ EAPI int shortcut_db_get_list(const char *package_name, GList **shortcut_list)
                shortcut->icon = strdup((i18n_icon != NULL ? i18n_icon : (char *)icon));
                shortcut->name = strdup((i18n_name != NULL ? i18n_name : (char *)name));
                shortcut->extra_key = strdup((char *)extra_key);
-               shortcut->extra_data = strdup((char *)extra_key);
+               shortcut->extra_data = strdup((char *)extra_data);
                *shortcut_list = g_list_append(*shortcut_list, shortcut);
 
                free(i18n_name);