1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib: Use struct initialization

Make sure everything is initialized

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Volker Lendecke 2024-05-21 08:31:45 +02:00 committed by Andrew Bartlett
parent c443d377a0
commit 0fe1a6e9da

View File

@ -102,9 +102,7 @@ time_t convert_timespec_to_time_t(struct timespec ts)
struct timespec convert_time_t_to_timespec(time_t t)
{
struct timespec ts;
ts.tv_sec = t;
ts.tv_nsec = 0;
struct timespec ts = {.tv_sec = t};
return ts;
}