提交 98448f58 编写于 作者: B blueswir1

Silence some warnings about uninitialized variables

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5362 c046a42c-6fe2-441c-8c8c-71466251a162
上级 223f0d72
...@@ -1148,6 +1148,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, ...@@ -1148,6 +1148,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
end_code = 0; end_code = 0;
start_data = 0; start_data = 0;
end_data = 0; end_data = 0;
interp_ex.a_info = 0;
for(i=0;i < elf_ex.e_phnum; i++) { for(i=0;i < elf_ex.e_phnum; i++) {
if (elf_ppnt->p_type == PT_INTERP) { if (elf_ppnt->p_type == PT_INTERP) {
......
...@@ -178,7 +178,7 @@ print_execve(const struct syscallname *name, ...@@ -178,7 +178,7 @@ print_execve(const struct syscallname *name,
unlock_user(s, arg1, 0); unlock_user(s, arg1, 0);
for (arg_ptr_addr = arg2; ; arg_ptr_addr += sizeof(abi_ulong)) { for (arg_ptr_addr = arg2; ; arg_ptr_addr += sizeof(abi_ulong)) {
abi_ulong *arg_ptr, arg_addr, s_addr; abi_ulong *arg_ptr, arg_addr;
arg_ptr = lock_user(VERIFY_READ, arg_ptr_addr, sizeof(abi_ulong), 1); arg_ptr = lock_user(VERIFY_READ, arg_ptr_addr, sizeof(abi_ulong), 1);
if (!arg_ptr) if (!arg_ptr)
...@@ -189,7 +189,7 @@ print_execve(const struct syscallname *name, ...@@ -189,7 +189,7 @@ print_execve(const struct syscallname *name,
break; break;
if ((s = lock_user_string(arg_addr))) { if ((s = lock_user_string(arg_addr))) {
gemu_log("\"%s\",", s); gemu_log("\"%s\",", s);
unlock_user(s, s_addr, 0); unlock_user(s, arg_addr, 0);
} }
} }
......
...@@ -7831,8 +7831,10 @@ static int main_loop(void) ...@@ -7831,8 +7831,10 @@ static int main_loop(void)
timeout = 0; timeout = 0;
} }
} else { } else {
if (shutdown_requested) if (shutdown_requested) {
ret = EXCP_INTERRUPT;
break; break;
}
timeout = 10; timeout = 10;
} }
#ifdef CONFIG_PROFILER #ifdef CONFIG_PROFILER
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册