]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:modules: Initialize ‘tm’ structure
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 20 Sep 2023 05:05:09 +0000 (17:05 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Sep 2023 02:43:28 +0000 (02:43 +0000)
‘tm’ must be initialized prior to calling strptime().

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/modules/vfs_btrfs.c

index a7ba0ece206ce2dd3421a13d4ddf60c96a782768..12517941ad0fb841921a6138c50e50ce8f3e0fb8 100644 (file)
@@ -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;