From 7b8118e82381b813767a47fed7003a4f949f4226 Mon Sep 17 00:00:00 2001 From: vibi sreenivasan Date: Fri, 19 Jun 2009 13:34:39 +0530 Subject: =?UTF-8?q?linux-user/syscall.c:=20remove=20warning:=20=E2=80=98ar?= =?UTF-8?q?ray=E2=80=99=20may=20be=20used=20uninitialized=20in=20this=20fu?= =?UTF-8?q?nction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-user') 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; -- cgit v1.2.3