diff options
| author | Piotr Siminski <piotr.siminski@globallogic.com> | 2023-12-08 07:36:02 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-12-20 12:56:29 +0000 |
| commit | da467105545485801f26e958e3005cfac8af7f57 (patch) | |
| tree | 0b772547c320f113751dd48b215d579ce3a28e22 /executor | |
| parent | 3da2432fb9dce67f1236c96a8d81604a98fda523 (diff) | |
executor: keep style_test.go happy
This commit fixes:
[0ms] exec opts: procid=0 threaded=1 cover=0 comps=0 dedup=1 signal=0 timeouts=50/5000/1 prog=168 filter=0
spawned worker pid 12456
--- FAIL: TestExecutorMistakes (0.09s)
style_test.go:193:
executor/test_linux.h:104: Don't use C89 var declarations. Declare vars where they are needed \
and combine with initialization
int res;
FAIL
FAIL github.com/google/syzkaller/executor 1.070s
FAIL
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/test_linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/test_linux.h b/executor/test_linux.h index f5630edbf..4c080769f 100644 --- a/executor/test_linux.h +++ b/executor/test_linux.h @@ -101,7 +101,7 @@ static int test_one(int text_type, const char* text, int text_size, int flags, u static int test_kvm() { - int res; + int res = 0; unsigned ver = host_kernel_version(); printf("host kernel version %u\n", ver); |
