- fix potential uninitialized variable

This commit is contained in:
Babak Farrokhi 2015-10-25 16:17:24 +03:30
parent 1b4cfba717
commit d2cace06a9

View File

@ -195,6 +195,8 @@ wait_for(int seconds)
struct timespec tp; struct timespec tp;
bzero(&tp, sizeof(tp));
clock_gettime(CLOCK_REALTIME, &tp); clock_gettime(CLOCK_REALTIME, &tp);
time_t current_epoch = tp.tv_sec; time_t current_epoch = tp.tv_sec;