Commit c1f543b7 authored by Emilio G. Cota's avatar Emilio G. Cota Committed by Richard Henderson
Browse files

tcg: fix use of uninitialized variable under CONFIG_PROFILER



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

Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: default avatarEmilio G. Cota <cota@braap.org>
Message-Id: <20181010144853.13005-3-cota@braap.org>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent fff42f18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3430,7 +3430,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb)

#ifdef CONFIG_PROFILER
    {
        int n;
        int n = 0;

        QTAILQ_FOREACH(op, &s->ops, link) {
            n++;