Skip to content

Commit

Permalink
Fix uninitialized variable use (reported by Clang Static Analyzer)
Browse files Browse the repository at this point in the history
main.c:488:22: warning: The left operand of '/' is a garbage value
    fbsize = (fbsize / BLOCKSIZE) * BLOCKSIZE;
              ~~~~~~ ^
1 warning generated.
  • Loading branch information
ssvb committed Feb 14, 2017
1 parent bd489a5 commit a0c5fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ int main(void)
void *poolbuf;
size_t bufsize = SIZE;
#ifdef __linux__
size_t fbsize;
size_t fbsize = 0;
int64_t *fbbuf = mmap_framebuffer(&fbsize);
fbsize = (fbsize / BLOCKSIZE) * BLOCKSIZE;
#endif
Expand Down

0 comments on commit a0c5fc2

Please sign in to comment.