diff --git a/src/rtl_test.c b/src/rtl_test.c index 8bf567e..7f04373 100644 --- a/src/rtl_test.c +++ b/src/rtl_test.c @@ -145,8 +145,8 @@ static int ppm_gettime(struct timespec *ts) struct timeval tv; rv = gettimeofday(&tv, NULL); - ts->tv_sec = tv.tv_sec; - ts->tv_nsec = tv.tv_usec * 1000; + tg->tv_sec = tv.tv_sec; + tg->tv_nsec = tv.tv_usec * 1000; #endif return rv; }