From: Nikolaus Rath Date: Sat, 24 Dec 2016 02:31:34 +0000 (-0800) Subject: Fixed use of uninitialized memory. X-Git-Tag: fuse-3.0.1~46 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d6e86a7c40ab715aeaf331c6d43749694763b924;p=qemu-gpiodev%2Flibfuse.git Fixed use of uninitialized memory. --- diff --git a/example/null.c b/example/null.c index 62ae3d4..5e8ebda 100644 --- a/example/null.c +++ b/example/null.c @@ -85,6 +85,7 @@ static int null_read(const char *path, char *buf, size_t size, if (offset >= (1ULL << 32)) return 0; + memset(buf, 0, size); return size; }