]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Avoid using locals outside their scope
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Jun 2016 12:04:40 +0000 (14:04 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 7 Jul 2016 18:25:00 +0000 (15:25 -0300)
commitcf2887c9738451eb989c6c102af070dee2dc172a
treee249f7bb4f177279d35cc3e564cb969d316bb3ef
parent7eb24386dbfb0b66464c7f856c1074c606efccda
target-i386: Avoid using locals outside their scope

x86_cpu_parse_featurestr has a "val = num;" assignment just before num
goes out of scope.  Push num up to fix the issue.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c