mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Avoid use of uninitialized memory
This commit is contained in:
parent
28aa1c199d
commit
85123aacdb
@ -84,7 +84,10 @@ void samba_extended_info_version(struct smb_extended_info *extended_info)
|
||||
/* FIXME: samba_gitcommitdate should contain the git commit date. */
|
||||
unix_to_nt_time(&extended_info->samba_gitcommitdate, time(NULL));
|
||||
|
||||
memset(extended_info->samba_version_string, 0,
|
||||
sizeof(extended_info->samba_version_string));
|
||||
|
||||
snprintf (extended_info->samba_version_string,
|
||||
SAMBA_EXTENDED_INFO_VERSION_STRING_LENGTH,
|
||||
sizeof(extended_info->samba_version_string),
|
||||
"%s", samba_version_string());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user