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 <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/12172
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Aaron Durbin 2015-10-23 17:36:57 -05:00 committed by Patrick Georgi
parent 8eb63fa063
commit cd9ba8ac03
1 changed files with 1 additions and 0 deletions

View File

@ -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