From 803ac7a6d8d06787305a01a068c2e0ca47e2536d Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 20 Apr 2008 21:08:45 +0200 Subject: [PATCH] scsi_id: initialize serial strings --- extras/scsi_id/scsi_id.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/scsi_id/scsi_id.c b/extras/scsi_id/scsi_id.c index 463b3775..53810871 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); -- 2.39.5