diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-20 21:08:45 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-20 21:08:45 +0200 |
commit | 803ac7a6d8d06787305a01a068c2e0ca47e2536d (patch) | |
tree | 3afa8222eea06426682cc1ef4fc471d856ce4672 /extras | |
parent | c70560feef0eb61a150cd2f956f0beead4313ffe (diff) |
scsi_id: initialize serial strings
Diffstat (limited to 'extras')
-rw-r--r-- | extras/scsi_id/scsi_id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/scsi_id/scsi_id.c b/extras/scsi_id/scsi_id.c index 463b3775cf..538108717d 100644 --- a/extras/scsi_id/scsi_id.c +++ b/extras/scsi_id/scsi_id.c @@ -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); |