scsi_id: initialize serial strings

This commit is contained in:
Kay Sievers 2008-04-20 21:08:45 +02:00
parent c70560feef
commit 803ac7a6d8

View File

@ -682,8 +682,8 @@ static int scsi_id(const char *devpath, char *maj_min_dev)
struct sysfs_device *dev_scsi = NULL;
int good_dev;
int page_code;
char serial[MAX_SERIAL_LEN];
char serial_short[MAX_SERIAL_LEN];
char serial[MAX_SERIAL_LEN] = "";
char serial_short[MAX_SERIAL_LEN] = "";
const char *bus_str = NULL;
dbg("devpath %s\n", devpath);