Skip to content

Commit 94b958a

Browse files
author
Yuuki Harano
committed
Merge branch 'pgtk' of github.com:masm11/emacs into pgtk
2 parents 3a51125 + 138460e commit 94b958a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pgtkfns.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,10 @@ parse_resource_key (const char *res_key, char *setting_key)
17231723
/* check existence of setting_key */
17241724
GSettingsSchemaSource *ssrc = g_settings_schema_source_get_default ();
17251725
GSettingsSchema *scm = g_settings_schema_source_lookup (ssrc, SCHEMA_ID, FALSE);
1726+
if (scm == NULL) {
1727+
return NULL;
1728+
}
1729+
17261730
if (!g_settings_schema_has_key (scm, setting_key)) {
17271731
g_settings_schema_unref (scm);
17281732
return NULL;

0 commit comments

Comments
 (0)