diff options
author | Christophe Fergeau <teuf@gnome.org> | 2005-09-27 07:25:25 +0000 |
---|---|---|
committer | Christophe Fergeau <teuf@gnome.org> | 2005-09-27 07:25:25 +0000 |
commit | 5d38cbffd827dd36c7e7f91580ec31da9ebaf92d (patch) | |
tree | 9b7b473b8e72733ac29a6e6bd7d68f140c55f442 /src/db-artwork-parser.c | |
parent | 6a0e830586380aafe71e9709814624057e21ca79 (diff) | |
download | libgpod-5d38cbffd827dd36c7e7f91580ec31da9ebaf92d.tar.gz libgpod-5d38cbffd827dd36c7e7f91580ec31da9ebaf92d.tar.xz libgpod-5d38cbffd827dd36c7e7f91580ec31da9ebaf92d.zip |
2005-09-27 Christophe Fergeau <teuf@gnome.org>
* src/itdb_itunesdb.c: (write_mhsd_tracks), (write_playlist_mhips),
(write_podcast_mhips): move variable declaration before code to fix
compilation
* src/db-artwork-parser.c: (ipod_parse_artwork_db):
* src/db-artwork-writer.c: (ipod_write_artwork_db):
* src/ithumb-writer.c: (ithumb_writer_new): added some sanity checks
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1103 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src/db-artwork-parser.c')
-rw-r--r-- | src/db-artwork-parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db-artwork-parser.c b/src/db-artwork-parser.c index 8c41dd6..7cc7b82 100644 --- a/src/db-artwork-parser.c +++ b/src/db-artwork-parser.c @@ -352,7 +352,11 @@ ipod_parse_artwork_db (Itdb_iTunesDB *db) DBParseContext *ctx; char *filename; + ctx = NULL; filename = ipod_db_get_artwork_db_path (db->mountpoint); + if (filename == NULL) { + goto error; + } ctx = db_parse_context_new_from_file (filename); g_free (filename); if (ctx == NULL) { |