linux-user/syscall.c: remove warning: ‘array’ may be used uninitialized in this function
authorvibi sreenivasan <vibi_sreenivasan@cms.com>
Fri, 19 Jun 2009 08:04:39 +0000 (13:34 +0530)
committerRiku Voipio <riku.voipio@iki.fi>
Wed, 8 Jul 2009 14:01:08 +0000 (17:01 +0300)
Removes the following warning

CC    i386-linux-user/syscall.o
cc1: warnings being treated as errors
/media/nfs/qemu/linux-user/syscall.c: In function ‘do_syscall’:
/media/nfs/qemu/linux-user/syscall.c:2219: warning: ‘array’ may be used uninitialized in this function

Signed-off-by: Vibi Sreenivasan <vibi_sreenivasan@cms.com>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/syscall.c

index a96e86a..6aaf9ca 100644 (file)
@@ -2241,7 +2241,7 @@ static inline abi_long do_semctl(int semid, int semnum, int cmd,
 {
     union semun arg;
     struct semid_ds dsarg;
-    unsigned short *array;
+    unsigned short *array = NULL;
     struct seminfo seminfo;
     abi_long ret = -TARGET_EINVAL;
     abi_long err;