tcg: fix use of uninitialized variable under CONFIG_PROFILER

We forgot to initialize n in commit 15fa08f845 ("tcg: Dynamically
allocate TCGOps", 2017-12-29).

Backports commit c1f543b739086733024e31d74a52d9e41553f316 from qemu
This commit is contained in:
Emilio G. Cota 2018-10-23 14:37:35 -04:00 committed by Lioncash
parent 9ce38c20b9
commit 223975ada0
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2890,7 +2890,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb)
#ifdef CONFIG_PROFILER
{
int n;
int n = 0;
QTAILQ_FOREACH(op, &s->ops, link) {
n++;