handle missing GTK+ section graceful
authorJürgen Hötzel <juergen@archlinux.org>
Sat, 11 Jul 2009 18:49:31 +0000 (18:49 +0000)
committerJürgen Hötzel <juergen@archlinux.org>
Sat, 11 Jul 2009 18:49:31 +0000 (18:49 +0000)
lxsession/settings-daemon.c

index 4541d23..697a467 100644 (file)
@@ -177,7 +177,9 @@ static void load_settings( GKeyFile* kf )
        configure_input(kf);
 
        /* Load GTK+ settings */
-       keys = g_key_file_get_keys( kf, group, NULL, NULL );
+       if ( keys = g_key_file_get_keys( kf, group, NULL, NULL ) == NULL ) 
+           return;
+       
        for( key = keys; *key; ++key )
        {
                const char* name = *key + 1;