The following commit has been merged in the master branch:
commit 934cdd967144e968e20b91571e8534060b6bcebe
Author: Guillem Jover <[email protected]>
Date:   Sat Sep 26 14:08:56 2009 +0200

    libdpkg: Enclose buffer_data union initialization with braces

diff --git a/lib/dpkg/buffer.c b/lib/dpkg/buffer.c
index 827dbce..92d2fa7 100644
--- a/lib/dpkg/buffer.c
+++ b/lib/dpkg/buffer.c
@@ -199,7 +199,7 @@ buffer_copy_TYPE(PtrPtr, void *, ptr, void *, ptr);
 off_t
 buffer_hash(const void *input, void *output, int type, off_t limit)
 {
-       struct buffer_data data = { output, type };
+       struct buffer_data data = { { output }, type };
        off_t ret;
 
        buffer_init(NULL, &data);

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to