Fix warning that assign NULL to time_t.