From: Kay Sievers Date: Sun, 20 Apr 2008 19:08:45 +0000 (+0200) Subject: scsi_id: initialize serial strings X-Git-Tag: 174~1727 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=803ac7a6d8d06787305a01a068c2e0ca47e2536d;p=systemd scsi_id: initialize serial strings --- 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);