Prevent potential segfault

This commit is contained in:
Rui Matos 2013-02-17 00:42:18 +01:00
parent 12ce8a7fd9
commit bc3307b492
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ set_locale_id (GtkDialog *chooser,
if (check == NULL || language == NULL)
continue;
if (strcmp (locale_id, language) == 0) {
if (g_strcmp0 (locale_id, language) == 0) {
gboolean is_extra;
gtk_image_set_from_icon_name (GTK_IMAGE (check), "object-select-symbolic", GTK_ICON_SIZE_MENU);

View file

@ -155,7 +155,7 @@ set_locale_id (GtkDialog *chooser,
if (check == NULL || region == NULL)
continue;
if (strcmp (locale_id, region) == 0) {
if (g_strcmp0 (locale_id, region) == 0) {
gboolean is_extra;
/* mark as selected */