about summary refs log tree commit diff
path: root/src/afl-gotcpu.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-21 19:13:39 +0100
committerhexcoder- <heiko@hexco.de>2020-03-21 19:13:39 +0100
commitf18dbb0b4017e836edd03de8a241548b337ffcb4 (patch)
treef82bf2efffa2f4e2695b370456173891a25330d2 /src/afl-gotcpu.c
parent6cbd0f1faf576a3ba9021720b0ca63a3cdd260ab (diff)
downloadafl++-f18dbb0b4017e836edd03de8a241548b337ffcb4.tar.gz
afl-gotcpu.c: compielr warning fixed: initialize variable v2
Diffstat (limited to 'src/afl-gotcpu.c')
-rw-r--r--src/afl-gotcpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-gotcpu.c b/src/afl-gotcpu.c
index 6ca7c071..6c2fa147 100644
--- a/src/afl-gotcpu.c
+++ b/src/afl-gotcpu.c
@@ -90,7 +90,7 @@ static u64 get_cpu_usage_us(void) {
 
 static u32 measure_preemption(u32 target_ms) {
 
-  volatile u32 v1, v2;
+  volatile u32 v1, v2 = 0;
 
   u64 st_t, en_t, st_c, en_c, real_delta, slice_delta;
   s32 loop_repeats = 0;