Skip to content

Commit fc8eaf6

Browse files
committed
Fix #1556, Initialize Variables in osapi-clock.c
1 parent 790dc84 commit fc8eaf6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/os/shared/src/osapi-clock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ int32 OS_SetLocalTime(const OS_time_t *time_struct)
9090
*-----------------------------------------------------------------*/
9191
OS_time_t OS_TimeFromRelativeMilliseconds(int32 relative_msec)
9292
{
93-
OS_time_t abs_time;
93+
OS_time_t abs_time = OS_TIME_ZERO;
9494

9595
if (relative_msec == OS_CHECK)
9696
{
@@ -120,7 +120,7 @@ OS_time_t OS_TimeFromRelativeMilliseconds(int32 relative_msec)
120120
int32 OS_TimeToRelativeMilliseconds(OS_time_t time)
121121
{
122122
int64 relative_msec;
123-
OS_time_t curr_time;
123+
OS_time_t curr_time = OS_TIME_ZERO;
124124

125125
/*
126126
* This is an optimization that assumes all negative time values are

0 commit comments

Comments
 (0)