summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CommandTerminal/CmdGetSurveyDataFile.cpp4
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) {