From: Ben Pfaff Date: Mon, 27 Jun 2005 15:19:51 +0000 (+0000) Subject: Initialize start_time. Thanks to Ankur Goyal . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56fa72368df9d943e0244c5371c74da55286f69e;p=pintos-anon Initialize start_time. Thanks to Ankur Goyal . --- diff --git a/src/tests/threads/alarm-priority.c b/src/tests/threads/alarm-priority.c index 379f492..291861f 100644 --- a/src/tests/threads/alarm-priority.c +++ b/src/tests/threads/alarm-priority.c @@ -39,7 +39,7 @@ static void alarm_priority_thread (void *aux UNUSED) { /* Busy-wait until the current time changes. */ - int64_t start_time; + int64_t start_time = timer_ticks (); while (timer_elapsed (start_time) == 0) continue;