diff options
author | Max Kellermann <max@duempel.org> | 2009-07-05 08:29:52 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-07-05 08:29:52 +0200 |
commit | 111c4dac633418f20559289dbe9a7e3efe2ac4bd (patch) | |
tree | 03892c0c9ea389a1d57565b8c4e13b9d537ceb8e /src/directory_save.c | |
parent | 69ff9d757f66ee7afaf7a9220aec253da1e9350f (diff) | |
download | mpd-111c4dac633418f20559289dbe9a7e3efe2ac4bd.tar.gz mpd-111c4dac633418f20559289dbe9a7e3efe2ac4bd.tar.xz mpd-111c4dac633418f20559289dbe9a7e3efe2ac4bd.zip |
song_save: use GError for error handling
Diffstat (limited to 'src/directory_save.c')
-rw-r--r-- | src/directory_save.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/directory_save.c b/src/directory_save.c index 28aadd96c..cb76b225f 100644 --- a/src/directory_save.c +++ b/src/directory_save.c @@ -138,7 +138,10 @@ directory_load(FILE *fp, struct directory *directory, GError **error) if (!success) return false; } else if (g_str_has_prefix(buffer, SONG_BEGIN)) { - songvec_load(fp, &directory->songs, directory); + success = songvec_load(fp, &directory->songs, + directory, error); + if (!success) + return false; } else { g_set_error(error, directory_quark(), 0, "Malformed line: %s", buffer); |