init a struct flock
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@118 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
1059fae93b
commit
2063de2fdc
|
@ -967,7 +967,7 @@ readfile (int nolock)
|
|||
{
|
||||
FILE *fp = NULL, *fpl = NULL;
|
||||
char buf[1200];
|
||||
struct flock fl;
|
||||
struct flock fl = { 0 };
|
||||
|
||||
fl.l_type = F_RDLCK;
|
||||
fl.l_whence = SEEK_SET;
|
||||
|
|
Loading…
Reference in New Issue