Don't core dump, if measurements are not defined
This commit is contained in:
parent
ddce867821
commit
1e899a522d
|
@ -340,10 +340,8 @@ void display_measurements(double elapsed)
|
||||||
if (!measurements_on)
|
if (!measurements_on)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!has_init) {
|
if (!has_init)
|
||||||
fprintf(stderr, "Not initialized prior display measurement values, please fix!\n");
|
return;
|
||||||
abort();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* count and check if we need to display this time */
|
/* count and check if we need to display this time */
|
||||||
time_elapsed += elapsed;
|
time_elapsed += elapsed;
|
||||||
|
|
Loading…
Reference in New Issue