diff --git a/libtransmission/tracker.c b/libtransmission/tracker.c index 7e89c8ec2..5ab1d4c40 100644 --- a/libtransmission/tracker.c +++ b/libtransmission/tracker.c @@ -563,7 +563,7 @@ onScrapeResponse( struct evhttp_request * req, void * primaryAddress ) tr_inf( "Got scrape response from '%s': %s", primaryAddress, - (req ? req->response_code_line : "(null)") ); + ( ( req && req->response_code_line ) ? req->response_code_line : "(null)") ); t = getExistingTracker( primaryAddress ); tr_free( primaryAddress );