Prevent potential segfault
This commit is contained in:
parent
12ce8a7fd9
commit
bc3307b492
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue