From da467105545485801f26e958e3005cfac8af7f57 Mon Sep 17 00:00:00 2001 From: Piotr Siminski Date: Fri, 8 Dec 2023 07:36:02 +0100 Subject: 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 --- executor/test_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor') 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); -- cgit mrf-deployment