From: Peter Foley <[email protected]> e.g. qemu: Uninitialized value was created by an allocation of 'key_in_cur.i' in the stack frame qemu: #0 0xaaaac49f489c in keyval_parse_one third_party/qemu/util/keyval.c:190:5
Signed-off-by: Peter Foley <[email protected]> Signed-off-by: Patrick Venture <[email protected]> --- util/keyval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/keyval.c b/util/keyval.c index a70629a481..f33c64079d 100644 --- a/util/keyval.c +++ b/util/keyval.c @@ -187,7 +187,7 @@ static const char *keyval_parse_one(QDict *qdict, const char *params, { const char *key, *key_end, *val_end, *s, *end; size_t len; - char key_in_cur[128]; + char key_in_cur[128] = {}; QDict *cur; int ret; QObject *next; -- 2.48.1.711.g2feabab25a-goog
