mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
refactor: change tr_torrentNew() args (#2337)
This commit is contained in:
@@ -233,11 +233,9 @@ static tr_watchdir_status onFileAdded(tr_watchdir_t dir, char const* name, void*
|
||||
|
||||
if (err == 0)
|
||||
{
|
||||
tr_torrentNew(ctor, &err, nullptr);
|
||||
|
||||
if (err == TR_PARSE_ERR)
|
||||
if (tr_torrentNew(ctor, nullptr) == nullptr)
|
||||
{
|
||||
tr_logAddError("Error parsing .torrent file \"%s\"", name);
|
||||
tr_logAddError("Unable to add .torrent file \"%s\"", name);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user