aboutsummaryrefslogtreecommitdiffstats
path: root/src/database.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-01 15:54:06 +0100
committerMax Kellermann <max@duempel.org>2009-11-01 15:54:06 +0100
commit53a749780aec9904f1c04802e12f748c2c9e3eff (patch)
tree2c9788dc7d58bf0d267d363f1e1df0989dfb2019 /src/database.c
parentc5040047020adb4139d7ed79659b326be4f7ffa4 (diff)
downloadmpd-53a749780aec9904f1c04802e12f748c2c9e3eff.tar.gz
mpd-53a749780aec9904f1c04802e12f748c2c9e3eff.tar.xz
mpd-53a749780aec9904f1c04802e12f748c2c9e3eff.zip
database: use strcmp() instead of g_str_has_prefix()
Diffstat (limited to '')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index b7f59d29f..4d36169c7 100644
--- a/src/database.c
+++ b/src/database.c
@@ -284,7 +284,7 @@ db_load(GError **error)
}
while ((line = read_text_line(fp, buffer)) != NULL &&
- !g_str_has_prefix(line, DIRECTORY_INFO_END)) {
+ strcmp(line, DIRECTORY_INFO_END) != 0) {
if (g_str_has_prefix(line, DIRECTORY_MPD_VERSION)) {
if (found_version) {
fclose(fp);