1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

add some more assertions to try & smoke out Biiaru's crash

This commit is contained in:
Charles Kerr 2008-10-19 20:10:29 +00:00
parent b1defc7c88
commit 7d6f7b5b28

View file

@ -329,8 +329,12 @@ tr_timerNew( struct tr_handle * handle,
void * user_data, void * user_data,
uint64_t interval_milliseconds ) uint64_t interval_milliseconds )
{ {
tr_timer * timer = tr_new0( tr_timer, 1 ); tr_timer * timer;
assert( handle );
assert( handle->events );
timer = tr_new0( tr_timer, 1 );
tr_timevalMsec( interval_milliseconds, &timer->tv ); tr_timevalMsec( interval_milliseconds, &timer->tv );
timer->func = func; timer->func = func;
timer->user_data = user_data; timer->user_data = user_data;