From d6e86a7c40ab715aeaf331c6d43749694763b924 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Fri, 23 Dec 2016 18:31:34 -0800 Subject: Fixed use of uninitialized memory. --- example/null.c | 1 + 1 file changed, 1 insertion(+) (limited to 'example') 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; } -- cgit v1.2.3