Skip to content
Snippets Groups Projects
Commit a0c5fc21 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

Fix uninitialized variable use (reported by Clang Static Analyzer)

main.c:488:22: warning: The left operand of '/' is a garbage value
    fbsize = (fbsize / BLOCKSIZE) * BLOCKSIZE;
              ~~~~~~ ^
1 warning generated.
parent bd489a51
No related branches found
No related tags found
No related merge requests found
...@@ -483,7 +483,7 @@ int main(void) ...@@ -483,7 +483,7 @@ int main(void)
void *poolbuf; void *poolbuf;
size_t bufsize = SIZE; size_t bufsize = SIZE;
#ifdef __linux__ #ifdef __linux__
size_t fbsize; size_t fbsize = 0;
int64_t *fbbuf = mmap_framebuffer(&fbsize); int64_t *fbbuf = mmap_framebuffer(&fbsize);
fbsize = (fbsize / BLOCKSIZE) * BLOCKSIZE; fbsize = (fbsize / BLOCKSIZE) * BLOCKSIZE;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment