summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2015-05-05 09:29:31 +0300
committerYakov Goldberg <yakov.g@samsung.com>2015-05-05 09:29:31 +0300
commitaf139122f344cd947ed261bcd975e0077d1779c0 (patch)
tree80c6d128aad9af126862619417ef50936e9e988a
parentfeff7b47ee4186f9e82be3875227c89766e0601e (diff)
Fix crash in case when config file doesn't existv1.0.0_1.14-beta3
-rw-r--r--src/bin/egui_gui/settings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/egui_gui/settings.c b/src/bin/egui_gui/settings.c
index 36433b9..3c5b41b 100644
--- a/src/bin/egui_gui/settings.c
+++ b/src/bin/egui_gui/settings.c
@@ -23,6 +23,8 @@ settings_init()
23 } 23 }
24 } 24 }
25 sprintf(_filename, "%s/erigo/config.json", efreet_config_home_get()); 25 sprintf(_filename, "%s/erigo/config.json", efreet_config_home_get());
26 /* If file doesn't exist don't try to load it. */
27 if (!ecore_file_exists(_filename)) return;
26 settings_load(); 28 settings_load();
27} 29}
28 30