summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userpref.c')
-rw-r--r--src/userpref.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/userpref.c b/src/userpref.c
index b877700..a2b77dc 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -32,14 +32,14 @@ char* get_host_id()
32 gchar* config_file = NULL; 32 gchar* config_file = NULL;
33 33
34 /* first get config file */ 34 /* first get config file */
35 config_file = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, LIBIPHONE_CONF_FILE, NULL); 35 config_file = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, LIBIPHONE_CONF_FILE, NULL);
36 if (g_file_test(config_file, (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))) { 36 if (g_file_test(config_file, (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR))) {
37 37
38 /*now parse file to get the HostID*/ 38 /* now parse file to get the HostID */
39 GKeyFile* key_file = g_key_file_new (); 39 GKeyFile* key_file = g_key_file_new ();
40 if( g_key_file_load_from_file (key_file, config_file, G_KEY_FILE_KEEP_COMMENTS, NULL) ) { 40 if( g_key_file_load_from_file (key_file, config_file, G_KEY_FILE_KEEP_COMMENTS, NULL) ) {
41 41
42 gchar* loc_host_id = g_key_file_get_value(key_file, "Global", "HostID", NULL); 42 gchar* loc_host_id = g_key_file_get_value(key_file, "Global", "HostID", NULL);
43 if (loc_host_id) 43 if (loc_host_id)
44 host_id = strdup(loc_host_id); 44 host_id = strdup(loc_host_id);
45 g_free(loc_host_id); 45 g_free(loc_host_id);