From: Erik H. <er...@ho...> - 2009-04-05 22:59:05
|
len and result.mhod53_list might be used before they are initialized. --- src/db-artwork-writer.c | 2 +- src/itdb_itunesdb.c | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/db-artwork-writer.c b/src/db-artwork-writer.c index a3c006e..22886ee 100644 --- a/src/db-artwork-writer.c +++ b/src/db-artwork-writer.c @@ -277,7 +277,7 @@ write_mhod_type_3 (gchar *string, iPodBuffer *buffer) { ArtworkDB_MhodHeaderString *mhod; unsigned int total_bytes; - glong len; + glong len = 0; const gint g2l = sizeof (gunichar2); gunichar2 *utf16, *strp; int i, padding; diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index d96019f..d35ac61 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -1315,6 +1315,7 @@ static MHODData get_mhod (FImport *fimp, glong mhod_seek, guint32 *ml) result.valid = FALSE; result.type = -1; + result.mhod53_list = NULL; g_return_val_if_fail (ml, result); *ml = -1; |