init a struct flock

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@118 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-01-16 01:37:33 +00:00
parent 1059fae93b
commit 2063de2fdc
1 changed files with 1 additions and 1 deletions

View File

@ -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;