]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:lib: Use correct C99 initializer for 'struct flock' in messages_dgm
authorAndreas Schneider <asn@samba.org>
Mon, 14 Jan 2019 11:20:35 +0000 (12:20 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 29 Apr 2019 16:04:28 +0000 (16:04 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/messages_dgm.c

index 5a79a234271346097cf32964eecdc60d84570366..2d90f525f1dfcb63c3fb6ee9a17ad3ff7635c933 100644 (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;