All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user/syscall.c: remove warning: ‘array’ may be used uninitialized in this function
@ 2009-06-19  8:04 vibi sreenivasan
  0 siblings, 0 replies; only message in thread
From: vibi sreenivasan @ 2009-06-19  8:04 UTC (permalink / raw)
  To: Riku Voipio; +Cc: qemu-devel

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>
---
 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 53a11ab..92d79c3 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2216,7 +2216,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.3.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-19  8:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-19  8:04 [Qemu-devel] [PATCH] linux-user/syscall.c: remove warning: ‘array’ may be used uninitialized in this function vibi sreenivasan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.