From 8e625285fc4ea9fd8d8cadb7410104e3045d8a98 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 1 Oct 2019 13:46:00 +0200 Subject: [PATCH] platforms: initialize strings This might fix a warning about argv being a TAINTED_SCALAR further down. --- platforms/posix/src/px4/common/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platforms/posix/src/px4/common/main.cpp b/platforms/posix/src/px4/common/main.cpp index 016969031a..e139550b27 100644 --- a/platforms/posix/src/px4/common/main.cpp +++ b/platforms/posix/src/px4/common/main.cpp @@ -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;