Commit 7b8118e82381b813767a47fed7003a4f949f4226
Committed by
Riku Voipio
1 parent
917507b0
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>
Showing
1 changed file
with
1 additions
and
1 deletions
linux-user/syscall.c
... | ... | @@ -2241,7 +2241,7 @@ static inline abi_long do_semctl(int semid, int semnum, int cmd, |
2241 | 2241 | { |
2242 | 2242 | union semun arg; |
2243 | 2243 | struct semid_ds dsarg; |
2244 | - unsigned short *array; | |
2244 | + unsigned short *array = NULL; | |
2245 | 2245 | struct seminfo seminfo; |
2246 | 2246 | abi_long ret = -TARGET_EINVAL; |
2247 | 2247 | abi_long err; | ... | ... |