]> git.ipfire.org Git - thirdparty/chrony.git/commit
rtc+getdate: initialize tm_wday for mktime()
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 4 Mar 2024 10:34:22 +0000 (11:34 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 4 Mar 2024 10:38:16 +0000 (11:38 +0100)
commitb0750136b50e674e329185925253207fa7c6b333
treef8f4d1f32e6a01363ab4f67aa5b530f714dc010a
parentad79aec94623fb1748ea5371dee6c71ac7873521
rtc+getdate: initialize tm_wday for mktime()

Even though mktime() is documented as ignoring the tm_wday field, the
coverity static analyzer complains about passing an uninitialized value.
Set the field to zero to make it happy.
getdate.y
rtc_linux.c