Преглед изворни кода

libdpkg: Enclose buffer_data union initialization with braces

Guillem Jover пре 17 година
родитељ
комит
934cdd9671
1 измењених фајлова са 1 додато и 1 уклоњено
  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
 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);