const char *dbpath;
char *locale;
GList *tmp;
+ GList *tmp2;
locale = _get_system_locale();
if (locale == NULL)
/* remove duplicate element:
* since the list is sorted, we can remove duplicates in linear time
*/
- for (tmp = *list; tmp; tmp = tmp->next) {
+ for (tmp = *list, tmp2 = g_list_next(tmp); tmp;
+ tmp = tmp2, tmp2 = g_list_next(tmp)) {
if (tmp->prev == NULL || tmp->data == NULL)
continue;
if (strcmp((const char *)tmp->prev->data,
}
return PMINFO_R_OK;
-
}
static int _appinfo_get_label(sqlite3 *db, const char *appid,
const char *dbpath;
char *locale;
GList *tmp;
+ GList *tmp2;
locale = _get_system_locale();
if (locale == NULL)
/* remove duplicate element:
* since the list is sorted, we can remove duplicates in linear time
*/
- for (tmp = *list; tmp; tmp = tmp->next) {
+ for (tmp = *list, tmp2 = g_list_next(tmp); tmp;
+ tmp = tmp2, tmp2 = g_list_next(tmp)) {
if (tmp->prev == NULL || tmp->data == NULL)
continue;
if (strcmp((const char *)tmp->prev->data,