Skip to content

Commit

Permalink
Fix uninitialized variable use
Browse files Browse the repository at this point in the history
  • Loading branch information
cgmb committed Oct 5, 2019
1 parent 285cd0d commit 0f00ba2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,7 @@ int main(int argc, char** argv) {
draw(&buf);

timespec interval_start;
clock_gettime(CLOCK_MONOTONIC, &interval_start);
while (process_keypress()) {
sim_step();
interval_start = wait(1e8, interval_start);
Expand Down

0 comments on commit 0f00ba2

Please sign in to comment.