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:
parent
b1defc7c88
commit
7d6f7b5b28
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue