We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790dc84 commit fc8eaf6Copy full SHA for fc8eaf6
1 file changed
src/os/shared/src/osapi-clock.c
@@ -90,7 +90,7 @@ int32 OS_SetLocalTime(const OS_time_t *time_struct)
90
*-----------------------------------------------------------------*/
91
OS_time_t OS_TimeFromRelativeMilliseconds(int32 relative_msec)
92
{
93
- OS_time_t abs_time;
+ OS_time_t abs_time = OS_TIME_ZERO;
94
95
if (relative_msec == OS_CHECK)
96
@@ -120,7 +120,7 @@ OS_time_t OS_TimeFromRelativeMilliseconds(int32 relative_msec)
120
int32 OS_TimeToRelativeMilliseconds(OS_time_t time)
121
122
int64 relative_msec;
123
- OS_time_t curr_time;
+ OS_time_t curr_time = OS_TIME_ZERO;
124
125
/*
126
* This is an optimization that assumes all negative time values are
0 commit comments