aboutsummaryrefslogtreecommitdiff
path: root/src/espik_config.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/espik_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/espik_config.c b/src/espik_config.c
index 7e74e16..82371eb 100644
--- a/src/espik_config.c
+++ b/src/espik_config.c
@@ -69,6 +69,9 @@ void espik_config_init ()
kill_me (2);
/* exit (ret); */
}
+
+ /* If an config option is not present, this will force it to a value */
+ espik_config_default_set ();
if ((ret = ecore_config_load ()) != ECORE_CONFIG_ERR_SUCC)
{
@@ -83,9 +86,6 @@ void espik_config_get (t_info *s_info)
s_info->server = malloc (sizeof (t_servinfo));
s_info->client = malloc (sizeof (t_userinfo));
- /* If an config option is not present, this will force it to a value */
- espik_config_default_set ();
-
s_info->server->host = ecore_config_string_get ("/config/server/0/host");
s_info->server->port = (unsigned short)ecore_config_int_get ("/config/server/0/port");