summaryrefslogtreecommitdiff
path: root/src/libunixonacid/unixmessage_sender_init.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-02-19 22:35:50 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-02-19 22:35:50 +0000
commite3aa9cf9df1a02648cfcb25900d151c2d128db73 (patch)
tree003a2634b408b85378780981e69730498691b22f /src/libunixonacid/unixmessage_sender_init.c
parent73783574792a8dc9538b0e20cd61f3177124f897 (diff)
downloadskalibs-e3aa9cf9df1a02648cfcb25900d151c2d128db73.tar.xz
- Bugfix: unixmessage_sender_init didn't initialize b->shorty
- byte_zero the ancilbuf's padding to appease valgrind
Diffstat (limited to 'src/libunixonacid/unixmessage_sender_init.c')
-rw-r--r--src/libunixonacid/unixmessage_sender_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libunixonacid/unixmessage_sender_init.c b/src/libunixonacid/unixmessage_sender_init.c
index 07c0bc2..d986f29 100644
--- a/src/libunixonacid/unixmessage_sender_init.c
+++ b/src/libunixonacid/unixmessage_sender_init.c
@@ -11,4 +11,5 @@ void unixmessage_sender_init (unixmessage_sender_t *b, int fd)
b->fds = genalloc_zero ;
b->offsets = genalloc_zero ;
b->head = 0 ;
+ b->shorty = 0 ;
}