mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
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:
parent
9ce38c20b9
commit
223975ada0
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue