commit 6be45bcabf5e76952ff44abba589d3144ce102e8
Author: Christophe Fergeau <[email protected]>
Date: Wed Nov 4 23:58:33 2009 +0100
make sure thumbs_dir isn't used uninitialized
src/ithumb-writer.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c
index c525a3d..9e45d46 100644
--- a/src/ithumb-writer.c
+++ b/src/ithumb-writer.c
@@ -1545,6 +1545,7 @@ itdb_write_ithumb_files (Itdb_DB *db)
}
formats = NULL;
+ thumbs_dir = NULL;
switch (db->db_type) {
case DB_TYPE_ITUNES:
formats = itdb_device_get_cover_art_formats(db_get_device(db));
@@ -1555,6 +1556,9 @@ itdb_write_ithumb_files (Itdb_DB *db)
thumbs_dir = ithumb_get_photos_thumb_dir (mount_point);
break;
}
+ if (thumbs_dir == NULL) {
+ return -1;
+ }
writers = NULL;
for (it = formats; it != NULL; it = it->next) {
iThumbWriter *writer;
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2