[glib: 1/2] Fix uninitialised header in the builder.



commit caad55d7266c2658f823ea734c4381f19b4c5827
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Apr 16 11:04:15 2010 -0400

    Fix uninitialised header in the builder.

 gvdb-builder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gvdb-builder.c b/gvdb-builder.c
index 45c5f4b..e139243 100644
--- a/gvdb-builder.c
+++ b/gvdb-builder.c
@@ -474,7 +474,7 @@ static GString *
 file_builder_serialise (FileBuilder          *fb,
                         struct gvdb_pointer   root)
 {
-  struct gvdb_header header;
+  struct gvdb_header header = { { 0, }, };
   GString *result;
 
   if (fb->byteswap)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]