From: Michael Scherer Date: Tue, 25 Jan 2011 17:24:48 +0000 (+0100) Subject: initialize gpm_fd X-Git-Tag: r0-52-13~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a3aad92bf3936193c905116313533948e509210;p=thirdparty%2Fnewt.git initialize gpm_fd Set gpm_fd to default value in case of error when opened, to prevent erronous usage. --- 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; }