diff options
author | Andreas Schneider <asn@samba.org> | 2019-01-14 12:20:35 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-04-29 16:04:28 +0000 |
commit | 2a1c19b82c34ebde17daee5548a4fdfb87f8104f (patch) | |
tree | 773599824259e4cb03a6356034f12d12bea46243 /source3/lib | |
parent | e0b9281cd7310581e971ca4fb1dce4bea497b30e (diff) | |
download | samba-2a1c19b82c34ebde17daee5548a4fdfb87f8104f.tar.gz |
s3:lib: Use correct C99 initializer for 'struct flock' in messages_dgm
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/messages_dgm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/messages_dgm.c b/source3/lib/messages_dgm.c index 5a79a234271..2d90f525f1d 100644 --- a/source3/lib/messages_dgm.c +++ b/source3/lib/messages_dgm.c @@ -1524,7 +1524,9 @@ int messaging_dgm_cleanup(pid_t pid) struct messaging_dgm_context *ctx = global_dgm_context; struct sun_path_buf lockfile_name, socket_name; int fd, len, ret; - struct flock lck = {}; + struct flock lck = { + .l_pid = 0, + }; if (ctx == NULL) { return ENOTCONN; |