summaryrefslogtreecommitdiff
path: root/extras/scsi_id/scsi_id.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/scsi_id/scsi_id.c')
-rw-r--r--extras/scsi_id/scsi_id.c4
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);