--- embedaddon/smartmontools/scsicmds.cpp 2013/07/22 01:17:35 1.1.1.2 +++ embedaddon/smartmontools/scsicmds.cpp 2013/10/14 07:54:04 1.1.1.3 @@ -40,6 +40,7 @@ #include #include #include +#include #include "config.h" #include "int64.h" @@ -48,7 +49,7 @@ #include "dev_interface.h" #include "utility.h" -const char *scsicmds_c_cvsid="$Id: scsicmds.cpp,v 1.1.1.2 2013/07/22 01:17:35 misho Exp $" +const char *scsicmds_c_cvsid="$Id: scsicmds.cpp,v 1.1.1.3 2013/10/14 07:54:04 misho Exp $" SCSICMDS_H_CVSID; // Print SCSI debug messages? @@ -1227,7 +1228,7 @@ uint64_t scsiGetSize(scsi_device * device, unsigned int * lb_sizep, int * lb_per_pb_expp) { - unsigned int last_lba, lb_size; + unsigned int last_lba = 0, lb_size = 0; int k, res; uint64_t ret_val = 0; UINT8 rc16resp[32];