From: Andrew Bartlett Date: Tue, 20 Apr 2021 02:39:40 +0000 (+1200) Subject: s3-modules: Fix "-Werror=maybe-uninitialized" errors only seen with -O3 and --enable... X-Git-Tag: tevent-0.11.0~1014 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=742ae6172f82c7d77080bfda58fde33303bb5759;p=thirdparty%2Fsamba.git s3-modules: Fix "-Werror=maybe-uninitialized" errors only seen with -O3 and --enable-coverage Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source3/modules/vfs_ceph_snapshots.c b/source3/modules/vfs_ceph_snapshots.c index 5d9d3161bb2..a9f09f0aa4b 100644 --- a/source3/modules/vfs_ceph_snapshots.c +++ b/source3/modules/vfs_ceph_snapshots.c @@ -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);