[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/5] linux-user/syscall.c: remove warning: ‘array’
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 4/5] linux-user/syscall.c: remove warning: ‘array’ may be used uninitialized in th is function |
Date: |
Tue, 30 Jun 2009 17:15:10 +0300 |
From: vibi sreenivasan <address@hidden>
From: vibi sreenivasan <address@hidden>
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 <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/syscall.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a96e86a..6aaf9ca 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;
--
1.6.2.1