Add protection for dump function also.

SVN revision: 36042
This commit is contained in:
Cedric BAIL 2008-09-17 08:59:47 +00:00
parent eeb52f487a
commit 3bf0d7ed5e
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -79,6 +79,8 @@ START_TEST(eina_counter_break)
eina_counter_delete(cnt);
eina_counter_dump(NULL, stderr);
eina_counter_shutdown();
}
END_TEST