From 9a3aad92bf3936193c905116313533948e509210 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 25 Jan 2011 18:24:48 +0100 Subject: [PATCH] initialize gpm_fd Set gpm_fd to default value in case of error when opened, to prevent erronous usage. --- form.c | 1 + 1 file changed, 1 insertion(+) diff --git a/form.c b/form.c index 5b421fb..5e01db8 100644 --- a/form.c +++ b/form.c @@ -308,6 +308,7 @@ static int Gpm_Open(Gpm_Connect *conn, int flag) sock_name = 0; } /*if*/ gpm_flag=0; + gpm_fd=-1; return -1; } -- 2.47.2