]> skyeroc.xyz Git - dgamelaunch/commitdiff
init a struct flock
authorJoshua Kwan <joshk@triplehelix.org>
Fri, 16 Jan 2004 01:37:33 +0000 (01:37 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Fri, 16 Jan 2004 01:37:33 +0000 (01:37 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@118 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index 596fef582980735bea3018df77f7ec7b6d16eafa..23445c4ea8a919bec506dbcb62a2b697eeddd2ff 100644 (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;