If an error occurs, we jump to error: then to out: and may return the
uninitialized retval.

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 uinput.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uinput.c b/uinput.c
index c75796e..5f3a2d2 100644
--- a/uinput.c
+++ b/uinput.c
@@ -62,7 +62,7 @@ int uinput_create(struct uinput_info *info)
 {
        struct uinput_user_dev dev;
        char file[50], *tmp;
-       int retval;
+       int retval = -1;
        int need_init = 0;
 
        tmp = getenv("UINPUT_DEVICE");
-- 
1.7.11.2


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to