diff options
Diffstat (limited to 'embed/ephy-embed-shell.c')
-rw-r--r-- | embed/ephy-embed-shell.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index 00867ed8b..364eab5e6 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -220,10 +220,18 @@ load_mime_from_xml (EphyEmbedShell *shell) EphyMimePermission permission = EPHY_MIME_PERMISSION_UNKNOWN; xml_file = ephy_file ("mime-types-permissions.xml"); - g_return_if_fail (xml_file != NULL); + if (xml_file == NULL) + { + g_warning ("MIME types permissions file not found!\n"); + return; + } reader = xmlNewTextReaderFilename (xml_file); - g_return_if_fail (reader != NULL); + if (reader == NULL) + { + g_warning ("Could not load MIME types permissions file!\n"); + return; + } ret = xmlTextReaderRead (reader); while (ret == 1) |