Skip to content

Commit ba911c2

Browse files
committed
stress-signet: ensure t is initialized to 0.0 for finish exit path
Currently t is not initialized, and exit path via finish uses this unitialized value. Ensure it is initialized at declaration time. Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
1 parent a2b055d commit ba911c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stress-signest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static int stress_signest(stress_args_t *args)
275275
char *ptr;
276276
const size_t altstack_size = STRESS_MINSIGSTKSZ * MAX_SIGNALS;
277277
double rate;
278-
CLOBBERED double t;
278+
CLOBBERED double t = 0.0;
279279
CLOBBERED double duration;
280280

281281
raised = 0;

0 commit comments

Comments
 (0)