From: Joseph Sutton Date: Wed, 20 Sep 2023 05:05:09 +0000 (+1200) Subject: s3:modules: Initialize ‘tm’ structure X-Git-Tag: tevent-0.16.0~361 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=955fd832534f0137d742b8888b293edfc3d8a247;p=thirdparty%2Fsamba.git s3:modules: Initialize ‘tm’ structure ‘tm’ must be initialized prior to calling strptime(). Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/modules/vfs_btrfs.c b/source3/modules/vfs_btrfs.c index a7ba0ece206..12517941ad0 100644 --- a/source3/modules/vfs_btrfs.c +++ b/source3/modules/vfs_btrfs.c @@ -779,7 +779,7 @@ static NTSTATUS btrfs_snap_delete(struct vfs_handle_struct *handle, char *snap_path) { char *tstr; - struct tm t_gmt; + struct tm t_gmt = {}; DIR *dest_dir; int dest_fd; struct btrfs_ioctl_vol_args ioctl_arg;