Fix some crashes with the new GDM 2.24. Closes #558058.

2008-10-27  Brian Cameron  <brian.cameron@sun.com>

        Fix some crashes with the new GDM 2.24.  Closes #558058.

        * src/ui/ui.c (meta_ui_parse_modifier): another null check
        * src/core/prefs.c (titlebar_handler, button_layout_handler):
          more null checks.


svn path=/trunk/; revision=4003
This commit is contained in:
Brian Cameron
2008-10-27 11:52:47 +00:00
committed by Thomas James Alexander Thurman
parent 11f18a25c2
commit 5ed940e101
3 changed files with 17 additions and 7 deletions

View File

@ -850,7 +850,7 @@ meta_ui_parse_modifier (const char *accel,
*mask = 0;
if (strcmp (accel, "disabled") == 0)
if (accel == NULL || strcmp (accel, "disabled") == 0)
return TRUE;
meta_ui_accelerator_parse (accel, &gdk_sym, &gdk_code, &gdk_mask);