From fb488ed956e46dde1416f8650081754d05a4f287 Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 27 May 2007 17:14:14 +0000 Subject: [PATCH] Remove possible access of uninitialized cdio_hwinfo structure. --- lib/cdda_interface/scan_devices.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/cdda_interface/scan_devices.c b/lib/cdda_interface/scan_devices.c index 8453256c..6110b3b7 100644 --- a/lib/cdda_interface/scan_devices.c +++ b/lib/cdda_interface/scan_devices.c @@ -1,7 +1,7 @@ /* - $Id: scan_devices.c,v 1.30 2006/03/25 00:20:28 rocky Exp $ + $Id: scan_devices.c,v 1.31 2007/05/27 17:14:14 rocky Exp $ - Copyright (C) 2004, 2005 Rocky Bernstein + Copyright (C) 2004, 2005, 2007 Rocky Bernstein Copyright (C) 1998 Monty xiphmont@mit.edu This program is free software; you can redistribute it and/or modify @@ -304,7 +304,9 @@ cdda_identify_device_cdio(CdIo_t *p_cdio, const char *psz_device, d->b_swap_bytes = true; { - cdio_hwinfo_t hw_info; + cdio_hwinfo_t hw_info = { + "UNKNOWN", "Unknown model", "????" + }; if ( mmc_get_hwinfo( p_cdio, &hw_info ) ) { unsigned int i_len = strlen(hw_info.psz_vendor)