Skip to contentSkip to conversation

linux-user/syscall.c: remove warning: ‘array’ may be used uninitialized in this function

PATCH New vibi sreenivasan 1 participant 1 message Jun 19, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 linux-user/syscall.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
linux-user/syscall.c +1 -1
index 53a11ab..92d79c3 100644
@@ -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;
Signature · 1 line
1.6.3.1