]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-modules: Fix "-Werror=maybe-uninitialized" errors only seen with -O3 and --enable...
authorAndrew Bartlett <abartlet@samba.org>
Tue, 20 Apr 2021 02:39:40 +0000 (14:39 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 28 Apr 2021 03:43:34 +0000 (03:43 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/modules/vfs_ceph_snapshots.c

index 5d9d3161bb2a4f59d80eb1fbc0703cef2c197622..a9f09f0aa4b3cf0100d43cc872b77db98e8180ea 100644 (file)
@@ -542,7 +542,7 @@ static int ceph_snap_gmt_convert_dir(struct vfs_handle_struct *handle,
               != NULL)
        {
                struct smb_filename *smb_fname;
-               time_t snap_secs;
+               time_t snap_secs = 0;
 
                if (ISDOT(dname) || ISDOTDOT(dname)) {
                        TALLOC_FREE(talloced);