diff options
Diffstat (limited to 'src/userpref.c')
| -rw-r--r-- | src/userpref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userpref.c b/src/userpref.c index 27aded5..bc92f96 100644 --- a/src/userpref.c +++ b/src/userpref.c | |||
| @@ -44,7 +44,7 @@ char* get_host_id() | |||
| 44 | 44 | ||
| 45 | gchar* loc_host_id = g_key_file_get_value(key_file, "Global", "HostID", NULL); | 45 | gchar* loc_host_id = g_key_file_get_value(key_file, "Global", "HostID", NULL); |
| 46 | if (loc_host_id) | 46 | if (loc_host_id) |
| 47 | host_id = strdup(loc_host_id); | 47 | host_id = strdup((char*)loc_host_id); |
| 48 | g_free(loc_host_id); | 48 | g_free(loc_host_id); |
| 49 | } | 49 | } |
| 50 | g_key_file_free(key_file); | 50 | g_key_file_free(key_file); |
