1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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>
This commit is contained in:
Andreas Schneider 2019-01-14 12:20:35 +01:00 committed by Andreas Schneider
parent e0b9281cd7
commit 2a1c19b82c

View File

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