Browse Source

libdpkg: Enclose buffer_data union initialization with braces

Guillem Jover 17 years ago
parent
commit
934cdd9671
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/dpkg/buffer.c

+ 1 - 1
lib/dpkg/buffer.c

@@ -199,7 +199,7 @@ buffer_copy_TYPE(PtrPtr, void *, ptr, void *, ptr);
 off_t
 off_t
 buffer_hash(const void *input, void *output, int type, off_t limit)
 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;
 	off_t ret;
 
 
 	buffer_init(NULL, &data);
 	buffer_init(NULL, &data);