blob: b26d6a888df3044086a670fb69dae30c9cba5420 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
}
|