Skip to content

Commit fb7d4c8

Browse files
DavidKorczynskiedsiper
authored andcommitted
tests: internal: fuzzers: move variable declaration
Signed-off-by: David Korczynski <[email protected]>
1 parent 96961f1 commit fb7d4c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/internal/fuzzers/cmetrics_decode_fuzz.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ LLVMFuzzerTestOneInput(const uint8_t * data, size_t size)
2626
struct cfl_list decoded_contexts;
2727
struct cmt *cmt = NULL;
2828
size_t off = 0;
29+
uint8_t decider;
2930
int result;
3031

3132
/* At least one byte is needed for deciding which decoder to use */
3233
if (size < 1) {
3334
return 0;
3435
}
3536

36-
uint8_t decider = data[0] % 2;
37+
decider = data[0] % 2;
3738

3839
/* Adjust data pointer since the first byte is used */
3940
data += 1;

0 commit comments

Comments
 (0)