aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-12-23 18:31:34 -0800
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-12-23 18:31:34 -0800
commitd6e86a7c40ab715aeaf331c6d43749694763b924 (patch)
tree442ab23198400dc67cad2762d770558d3607e033 /example
parentc005ff3288238e60be5526a9bade7186a40e2147 (diff)
Fixed use of uninitialized memory.
Diffstat (limited to 'example')
-rw-r--r--example/null.c1
1 files changed, 1 insertions, 0 deletions
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;
}