[gnome-initial-setup] language: Fix potential infinite loop in language code
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] language: Fix potential infinite loop in language code
- Date: Sun, 19 Aug 2012 01:35:25 +0000 (UTC)
commit 2ba1f6a9db1882a92e03a0a9ffd8eae842f6de74
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Aug 17 23:03:36 2012 -0400
language: Fix potential infinite loop in language code
.../pages/language/gis-language-page.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c b/gnome-initial-setup/pages/language/gis-language-page.c
index 023999c..13d3fb2 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -154,6 +154,8 @@ add_languages (GtkListStore *liststore,
locale_id = *locale_ids;
+ locale_ids ++;
+
if (!cc_common_language_has_font (locale_id))
continue;
@@ -165,8 +167,6 @@ add_languages (GtkListStore *liststore,
COL_LOCALE_NAME, locale_name,
COL_IS_EXTRA, is_extra,
-1);
-
- locale_ids ++;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]