summaryrefslogtreecommitdiff
path: root/src/core/servers-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/servers-setup.c')
-rw-r--r--src/core/servers-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 27d9f1f0..85aae0e2 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -526,7 +526,7 @@ static void read_servers(void)
static void read_settings(void)
{
if (old_source_host == NULL ||
- strcmp(old_source_host, settings_get_str("hostname")) != 0) {
+ g_strcmp0(old_source_host, settings_get_str("hostname")) != 0) {
g_free_not_null(old_source_host);
old_source_host = g_strdup(settings_get_str("hostname"));