summaryrefslogtreecommitdiff
path: root/src/core/servers-setup.c
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2015-04-17 21:13:18 +0200
committerAlexander Færøy <ahf@0x90.dk>2015-04-17 21:13:18 +0200
commit03be2861dcec9e8d088be6a0cae2848388923dab (patch)
tree2355318b525a4bbae3c1651ab37f89901500b2ab /src/core/servers-setup.c
parentef5ac430c75a3a551991aff8dae08ceeaca25d3f (diff)
parent9890daca797b31d34d97d953c512378aabe3d51f (diff)
downloadirssi-03be2861dcec9e8d088be6a0cae2848388923dab.zip
Merge pull request #235 from dequis/g_strcmp0
Change all strcmp() to g_strcmp0() to handle nulls gracefully
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 6cf48300..e88e85c7 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -531,7 +531,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"));