From 786e4a7ae46c413b9df57e34c0a31fd868839482 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Sat, 24 Sep 2011 06:55:50 +0200 Subject: [PATCH] Initialize memory before use. --- src/mares_iconhd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mares_iconhd.c b/src/mares_iconhd.c index c2c5d49..deb3f03 100644 --- a/src/mares_iconhd.c +++ b/src/mares_iconhd.c @@ -118,6 +118,7 @@ mares_iconhd_device_open (device_t **out, const char* name) // Set the default values. device->port = NULL; + memset (device->fingerprint, 0, sizeof (device->fingerprint)); // Open the device. int rc = serial_open (&device->port, name);