[coreboot-gerrit] New patch to review for coreboot: cbfstool: initialize offset field in buffer_init()
Aaron Durbin (adurbin@chromium.org)
gerrit at coreboot.org
Sat Oct 24 00:48:20 CEST 2015
Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12172
-gerrit
commit 088902e7787715b7682ad4bce2f1cdba2ea56a7f
Author: Aaron Durbin <adurbin at chromium.org>
Date: Fri Oct 23 17:36:57 2015 -0500
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 at chromium.org>
---
util/cbfstool/common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/util/cbfstool/common.h b/util/cbfstool/common.h
index b638653..e889e52 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
More information about the coreboot-gerrit
mailing list