Skip to content

Commit

Permalink
Fix warning with cppcheck 2.11 (#56)
Browse files Browse the repository at this point in the history
cppcheck 2.11 generates a warning for an unitialised variable
as follows:-

librfxcodec/tests/rfxencode.c:245:31: note: Assuming condition is false
        for (index = 0; index < g_count; index++)
                              ^
librfxcodec/tests/rfxencode.c:257:16: note: Uninitialized variable: out_bytes
               out_bytes, num_tiles);
               ^
  • Loading branch information
matt335672 authored Jun 23, 2023
1 parent 30f6ce1 commit 25f6128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/rfxencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ int process(void)
char *out_data;
char *bmp_data;
int out_fd;
int out_bytes;
int out_bytes = 0;
int error;
int index;
int index_x;
Expand Down

0 comments on commit 25f6128

Please sign in to comment.