projects
/
test
/
generic
/
wayland-fits.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b66d2a3
)
shm: initialize buffer data
author
U. Artie Eoff
<ullysses.a.eoff@intel.com>
Fri, 25 Jan 2013 20:52:25 +0000
(12:52 -0800)
committer
U. Artie Eoff
<ullysses.a.eoff@intel.com>
Fri, 25 Jan 2013 20:52:25 +0000
(12:52 -0800)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/core/shm.cpp
patch
|
blob
|
history
diff --git
a/src/core/shm.cpp
b/src/core/shm.cpp
index
8be3d53
..
5268b5a
100644
(file)
--- a/
src/core/shm.cpp
+++ b/
src/core/shm.cpp
@@
-76,6
+76,8
@@
SharedMemoryBuffer::SharedMemoryBuffer(const SharedMemory& shm, int width, int h
wl_shm_pool_destroy(pool);
close(fd);
+ memset(data_, 0xff, size_);
+
wl_buffer_set_user_data(*this, this);
}