aboutsummaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorvibi sreenivasan <vibi_sreenivasan@cms.com>2009-06-19 13:34:39 +0530
committerRiku Voipio <riku.voipio@iki.fi>2009-07-08 17:01:08 +0300
commit7b8118e82381b813767a47fed7003a4f949f4226 (patch)
tree0d5ea49378e0183397f7a67e6147c5277528511e /linux-user/syscall.c
parent917507b01efea8017bfcb4188ac696612e363e72 (diff)
linux-user/syscall.c: remove warning: ‘array’ may be used uninitialized in this function
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>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a96e86ae72..6aaf9caf4f 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -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;