From ac6fd26a6dceb0eb478172c44dcb1af517160e0c Mon Sep 17 00:00:00 2001 From: Scott Fennell Date: Fri, 28 Sep 2018 10:53:17 -0500 Subject: [PATCH] initialize size for Matlab::Matlab to remove garbage value edge case --- trick_source/data_products/Log/MatLab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trick_source/data_products/Log/MatLab.cpp b/trick_source/data_products/Log/MatLab.cpp index 8d0fbada..075bd09f 100644 --- a/trick_source/data_products/Log/MatLab.cpp +++ b/trick_source/data_products/Log/MatLab.cpp @@ -57,7 +57,7 @@ MatLab::MatLab(char * file_name, char * param_name, char * time_name) { short version; short magic; int data_type, bytes, field_data_type, field_bytes; - int size, type; + int size = 0, type = 0; int array_type, array_bytes, array_flags[2]; int array_complex, array_class ; int dim_type, dim_bytes, num_dims;