Don't core dump, if measurements are not defined

pull/1/head
Andreas Eversberg 3 years ago
parent ddce867821
commit 1e899a522d
  1. 6
      src/libdisplay/display_measurements.c

@ -340,10 +340,8 @@ void display_measurements(double elapsed)
if (!measurements_on)
return;
if (!has_init) {
fprintf(stderr, "Not initialized prior display measurement values, please fix!\n");
abort();
}
if (!has_init)
return;
/* count and check if we need to display this time */
time_elapsed += elapsed;

Loading…
Cancel
Save