diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-12-23 18:31:34 -0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-12-23 18:31:34 -0800 |
commit | d6e86a7c40ab715aeaf331c6d43749694763b924 (patch) | |
tree | 442ab23198400dc67cad2762d770558d3607e033 /example | |
parent | c005ff3288238e60be5526a9bade7186a40e2147 (diff) |
Fixed use of uninitialized memory.
Diffstat (limited to 'example')
-rw-r--r-- | example/null.c | 1 |
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; } |