summaryrefslogtreecommitdiff
path: root/util/cbfstool
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-10-23 17:36:57 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-10-25 13:22:21 +0100
commitcd9ba8ac034d9a693066ac3226332053f744299e (patch)
tree8a8660fc7d0aa9b19b559e94f35275510b53d608 /util/cbfstool
parent8eb63fa06381ae42712d77da7e09a7aa1365ef69 (diff)
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>
Diffstat (limited to 'util/cbfstool')
-rw-r--r--util/cbfstool/common.h1
1 files changed, 1 insertions, 0 deletions
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