keyboard: Check for NULL value first
Then try to access item->type
This commit is contained in:
parent
34dadb5ac3
commit
3d3cfa7304
1 changed files with 2 additions and 2 deletions
|
@ -1144,12 +1144,12 @@ description_edited_callback (GtkCellRendererText *renderer,
|
|||
DETAIL_KEYENTRY_COLUMN, &item,
|
||||
-1);
|
||||
|
||||
g_assert (item->type == CC_KEYBOARD_ITEM_TYPE_GCONF_DIR);
|
||||
|
||||
/* sanity check */
|
||||
if (item == NULL || item->desc_gconf_key == NULL)
|
||||
return;
|
||||
|
||||
g_assert (item->type == CC_KEYBOARD_ITEM_TYPE_GCONF_DIR);
|
||||
|
||||
client = gconf_client_get_default ();
|
||||
if (!gconf_client_set_string (client, item->desc_gconf_key, new_text, NULL))
|
||||
item->desc_editable = FALSE;
|
||||
|
|
Loading…
Add table
Reference in a new issue