X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mx.c;h=cb65b9f65bb4c02a66cce1fa6582f9d2da7005b7;hb=c25bc063f35aaad6938c2022dae7a283346c2769;hp=0d2ec9ce8766248f53b2011c34083a817495734f;hpb=9218fd9d7e2a7976b34683c60cb94f7fda42141a;p=apps%2Fmadmutt.git diff --git a/mx.c b/mx.c index 0d2ec9c..cb65b9f 100644 --- 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;