forked from enlightenment/efl
Add protection for dump function also.
SVN revision: 36042
This commit is contained in:
parent
eeb52f487a
commit
3bf0d7ed5e
|
@ -210,6 +210,8 @@ eina_counter_dump(Eina_Counter *counter, FILE *out)
|
|||
{
|
||||
Eina_Clock *clk;
|
||||
|
||||
if (!counter || !out) return ;
|
||||
|
||||
fprintf(out, "# specimen\texperiment time\tstarting time\tending time\n");
|
||||
|
||||
EINA_INLIST_ITER_LAST(counter->clocks, clk)
|
||||
|
|
|
@ -79,6 +79,8 @@ START_TEST(eina_counter_break)
|
|||
|
||||
eina_counter_delete(cnt);
|
||||
|
||||
eina_counter_dump(NULL, stderr);
|
||||
|
||||
eina_counter_shutdown();
|
||||
}
|
||||
END_TEST
|
||||
|
|
Loading…
Reference in New Issue