Don't core dump, if measurements are not defined

This commit is contained in:
Andreas Eversberg 2020-01-12 11:11:36 +01:00
parent ddce867821
commit 1e899a522d
1 changed files with 2 additions and 4 deletions

View File

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