Skip to content

Commit 9a3aad9

Browse files
mscherermlichvar
authored andcommitted
initialize gpm_fd
Set gpm_fd to default value in case of error when opened, to prevent erronous usage.
1 parent 69a5ca9 commit 9a3aad9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

form.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ static int Gpm_Open(Gpm_Connect *conn, int flag)
308308
sock_name = 0;
309309
} /*if*/
310310
gpm_flag=0;
311+
gpm_fd=-1;
311312
return -1;
312313
}
313314

0 commit comments

Comments
 (0)