From a0c5fc21a9ae571912fc9d63882f48222d3f3ace Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Tue, 14 Feb 2017 22:44:47 +0200 Subject: [PATCH] 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. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 03dde5d..a080f5b 100644 --- a/main.c +++ b/main.c @@ -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