Check that extension_path exists before opening it
This commit is contained in:
parent
18a0d1da03
commit
e55a0a91cb
1 changed files with 3 additions and 2 deletions
|
@ -1212,10 +1212,11 @@ midori_load_extensions (gpointer data)
|
|||
if (g_module_supported ())
|
||||
{
|
||||
gchar* extension_path;
|
||||
GDir* extension_dir;
|
||||
GDir* extension_dir = NULL;
|
||||
|
||||
if (!(extension_path = g_strdup (g_getenv ("MIDORI_EXTENSION_PATH"))))
|
||||
extension_path = sokoke_find_lib_path (PACKAGE_NAME);
|
||||
if (extension_path != NULL)
|
||||
extension_dir = g_dir_open (extension_path, 0, NULL);
|
||||
if (extension_dir != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue