summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7f584c2)
raw | patch | inline | side by side (parent: 7f584c2)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sat, 19 Nov 2011 23:52:15 +0000 (00:52 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 2 Dec 2011 11:08:34 +0000 (12:08 +0100) |
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index 389b8c68e570f2c8eb52a22e0419a81cfa62f35d..1e7caeea8444a346c003466851c80ab3f254c5fa 100644 (file)
--- a/src/main.c
+++ b/src/main.c
return name;
#else
- return g_strdup(options.host);
+ /*
+ * localhost is actually not correct, we only know that
+ * mpd_connection_new() has connected to the "default host".
+ */
+ const char *name = options.host ?: "localhost";
+ return g_strdup(name);
#endif
}
#else
(void)connection;
- /*
- * localhost is actually not correct, we only know that
- * mpd_connection_new() has connected to the "default host".
- */
- const char *name = options.host ?: "localhost";
- return g_strdup(name);
+ return default_settings_name();
#endif
}