diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index b366ce8e01..f55cd14682 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -387,7 +387,7 @@ wait4msg( #ifdef HAVE_GETTIMEOFDAY gettimeofday( &curr_time_tv, NULL ); #else /* ! HAVE_GETTIMEOFDAY */ - start_time_tv.tv_sec = time( NULL ); + curr_time_tv.tv_sec = time( NULL ); curr_time_tv.tv_usec = 0; #endif /* ! HAVE_GETTIMEOFDAY */