mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 10:20:35 +08:00
platforms: initialize strings
This might fix a warning about argv being a TAINTED_SCALAR further down.
This commit is contained in:
@@ -178,10 +178,10 @@ int main(int argc, char **argv)
|
||||
} else {
|
||||
/* Server/daemon apps need to parse the command line arguments. */
|
||||
|
||||
std::string data_path;
|
||||
std::string data_path{};
|
||||
std::string commands_file = "etc/init.d/rcS";
|
||||
std::string test_data_path;
|
||||
std::string working_directory;
|
||||
std::string test_data_path{};
|
||||
std::string working_directory{};
|
||||
int instance = 0;
|
||||
|
||||
int myoptind = 1;
|
||||
|
||||
Reference in New Issue
Block a user