diff options
author | Mike Fiore <mfiore@multitech.com> | 2016-05-31 12:33:43 -0500 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2016-05-31 12:33:43 -0500 |
commit | 437f8c9febb378559c1c12c840486e539a261d05 (patch) | |
tree | 731e1471456a127c4663e16d128feb0ea55e9ed1 | |
parent | c195d54b4cabf74b321c83eba8937671b2f32ef7 (diff) | |
download | mtdot-box-evb-factory-firmware-437f8c9febb378559c1c12c840486e539a261d05.tar.gz mtdot-box-evb-factory-firmware-437f8c9febb378559c1c12c840486e539a261d05.tar.bz2 mtdot-box-evb-factory-firmware-437f8c9febb378559c1c12c840486e539a261d05.zip |
explicitly initialize variables when displaying survey data - ARMCC doesn't initialize them to 0 which causes issues
-rw-r--r-- | CommandTerminal/CmdGetSurveyDataFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CommandTerminal/CmdGetSurveyDataFile.cpp b/CommandTerminal/CmdGetSurveyDataFile.cpp index 23e17f9..062b961 100644 --- a/CommandTerminal/CmdGetSurveyDataFile.cpp +++ b/CommandTerminal/CmdGetSurveyDataFile.cpp @@ -31,8 +31,8 @@ uint32_t CmdGetSurveyDataFile::action(std::vector<std::string> args) mDot::mdot_file file; int buf_size = 512; char buf[buf_size]; - int read; - int read_size; + int read = 0; + int read_size = 0; file = _dot->openUserFile(file_name, mDot::FM_RDONLY); if (file.fd < 0) { |