diff options
Diffstat (limited to 'user/xorg-gtest/remove-ridiculous-va_list-hacks.patch')
-rw-r--r-- | user/xorg-gtest/remove-ridiculous-va_list-hacks.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/user/xorg-gtest/remove-ridiculous-va_list-hacks.patch b/user/xorg-gtest/remove-ridiculous-va_list-hacks.patch new file mode 100644 index 000000000..b26d6a888 --- /dev/null +++ b/user/xorg-gtest/remove-ridiculous-va_list-hacks.patch @@ -0,0 +1,24 @@ +--- xorg-gtest-xorg-gtest-0.7.1/src/process.cpp.old 2013-02-24 22:15:08.000000000 +0000 ++++ xorg-gtest-xorg-gtest-0.7.1/src/process.cpp 2019-04-09 16:12:31.822094989 +0000 +@@ -126,15 +126,12 @@ + + void xorg::testing::Process::Start(const std::string& program, va_list args) { + std::vector<std::string> argv; +- +- if (args) { +- char *arg; +- do { +- arg = va_arg(args, char*); +- if (arg) +- argv.push_back(std::string(arg)); +- } while (arg); +- } ++ char *arg; ++ do { ++ arg = va_arg(args, char*); ++ if (arg) ++ argv.push_back(std::string(arg)); ++ } while (arg); + + Start(program, argv); + } |