missing includes, intializers, consts
[apps/madmutt.git] / mx.c
diff --git a/mx.c b/mx.c
index 0d2ec9c..cb65b9f 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -291,7 +291,7 @@ int mx_lock_file (const char *path, int fd, int excl, int dot, int timeout)
 int mx_unlock_file (const char *path, int fd, int dot)
 {
 #ifdef USE_FCNTL
-  struct flock unlockit = { F_UNLCK, 0, 0, 0 };
+  struct flock unlockit;
 
   memset (&unlockit, 0, sizeof (struct flock));
   unlockit.l_type = F_UNLCK;