]> xenbits.xensource.com Git - qemu-xen-4.5-testing.git/commitdiff
Silence some warnings about uninitialized variables
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 30 Sep 2008 18:16:09 +0000 (18:16 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 30 Sep 2008 18:16:09 +0000 (18:16 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5362 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/elfload.c
linux-user/strace.c
vl.c

index fcae78f7f6c694d8a92d0c603db2b22b74f5565c..1fdd184f78666486cc7d2814e0460fe4c31c0135 100644 (file)
@@ -1148,6 +1148,7 @@ int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
     end_code = 0;
     start_data = 0;
     end_data = 0;
+    interp_ex.a_info = 0;
 
     for(i=0;i < elf_ex.e_phnum; i++) {
        if (elf_ppnt->p_type == PT_INTERP) {
index cc0f4d10d6c9a72bd7fdebbf813e388ca904aef2..a8baebceac1e6fe2726bbd38c68e5b6acc2f9d8c 100644 (file)
@@ -178,7 +178,7 @@ print_execve(const struct syscallname *name,
     unlock_user(s, arg1, 0);
 
     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);
         if (!arg_ptr)
@@ -189,7 +189,7 @@ print_execve(const struct syscallname *name,
             break;
         if ((s = lock_user_string(arg_addr))) {
             gemu_log("\"%s\",", s);
-            unlock_user(s, s_addr, 0);
+            unlock_user(s, arg_addr, 0);
         }
     }
 
diff --git a/vl.c b/vl.c
index d7da9b57af9bbca27007017f1ab164faafe4487e..dec8d4f49901e321852d21618e17e12721aedb97 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -7831,8 +7831,10 @@ static int main_loop(void)
                 timeout = 0;
             }
         } else {
-            if (shutdown_requested)
+            if (shutdown_requested) {
+                ret = EXCP_INTERRUPT;
                 break;
+            }
             timeout = 10;
         }
 #ifdef CONFIG_PROFILER