From cd9ba8ac034d9a693066ac3226332053f744299e Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Fri, 23 Oct 2015 17:36:57 -0500 Subject: cbfstool: initialize offset field in buffer_init() If one wants to use buffer_init() for initializing a struct buffer all the fields should be initialized. Change-Id: I791c90a406301d662fd333c5b65b2e35c934d0f7 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/12172 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- util/cbfstool/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'util/cbfstool') diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h index b6386533cf..e889e52704 100644 --- a/util/cbfstool/common.h +++ b/util/cbfstool/common.h @@ -81,6 +81,7 @@ static inline void buffer_init(struct buffer *b, char *name, void *data, b->name = name; b->data = data; b->size = size; + b->offset = 0; } /* Splice a buffer into another buffer. Note that it's up to the caller to -- cgit v1.2.3