mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 16:13:36 +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 {
|
} else {
|
||||||
/* Server/daemon apps need to parse the command line arguments. */
|
/* 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 commands_file = "etc/init.d/rcS";
|
||||||
std::string test_data_path;
|
std::string test_data_path{};
|
||||||
std::string working_directory;
|
std::string working_directory{};
|
||||||
int instance = 0;
|
int instance = 0;
|
||||||
|
|
||||||
int myoptind = 1;
|
int myoptind = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user