aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_save.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/song_save.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 'src/song_save.c')
-rw-r--r--src/song_save.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/song_save.c b/src/song_save.c
index 4b8409d86..d931849e5 100644
--- a/src/song_save.c
+++ b/src/song_save.c
@@ -125,8 +125,7 @@ songvec_load(FILE *fp, struct songvec *sv, struct directory *parent,
const char *value;
while ((line = read_text_line(fp, buffer)) != NULL &&
- !g_str_has_prefix(line, SONG_END)) {
-
+ strcmp(line, SONG_END) != 0) {
if (0 == strncmp(SONG_KEY, line, strlen(SONG_KEY))) {
if (song)
commit_song(sv, song);