diff options
author | Max Kellermann <max@duempel.org> | 2009-11-01 15:54:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-01 15:54:06 +0100 |
commit | 53a749780aec9904f1c04802e12f748c2c9e3eff (patch) | |
tree | 2c9788dc7d58bf0d267d363f1e1df0989dfb2019 /src/database.c | |
parent | c5040047020adb4139d7ed79659b326be4f7ffa4 (diff) | |
download | mpd-53a749780aec9904f1c04802e12f748c2c9e3eff.tar.gz mpd-53a749780aec9904f1c04802e12f748c2c9e3eff.tar.xz mpd-53a749780aec9904f1c04802e12f748c2c9e3eff.zip |
database: use strcmp() instead of g_str_has_prefix()
Diffstat (limited to 'src/database.c')
-rw-r--r-- | src/database.c | 2 |
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); |