projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c005ff3
)
Fixed use of uninitialized memory.
author
Nikolaus Rath
<Nikolaus@rath.org>
Sat, 24 Dec 2016 02:31:34 +0000
(18:31 -0800)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Sat, 24 Dec 2016 02:31:34 +0000
(18:31 -0800)
example/null.c
patch
|
blob
|
history
diff --git
a/example/null.c
b/example/null.c
index 62ae3d441c84a86226cb6ccb5ffd5275efae82a8..5e8ebdaed42f91f0c27158e980f24cfb8e1a8902 100644
(file)
--- 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;
}