From 77b4c590d778c2536f430482087b6e459e9bb543 Mon Sep 17 00:00:00 2001 From: netchild Date: Wed, 6 Oct 2010 07:34:41 +0000 Subject: Fix a comparision of an uninitialised pointer. Submitted by: arundel Found by: clang analysis (automatic service by uqs@) Reviewed by: rdivacky --- sys/compat/linux/linux_futex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_futex.c') diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c index 4842260..69bc70c 100644 --- a/sys/compat/linux/linux_futex.c +++ b/sys/compat/linux/linux_futex.c @@ -431,7 +431,7 @@ linux_sys_futex(struct thread *td, struct linux_sys_futex_args *args) int op_ret, val, ret, nrwake; struct linux_emuldata *em; struct waiting_proc *wp; - struct futex *f, *f2; + struct futex *f, *f2 = NULL; int error = 0; /* -- cgit v1.1