mirror of
https://github.com/transmission/transmission
synced 2025-02-14 10:24:42 +00:00
fix: fix console warning when adding magnet links (#1229)
This commit is contained in:
parent
87ca3529b7
commit
82020d2e8c
1 changed files with 1 additions and 1 deletions
|
@ -1274,7 +1274,7 @@ static bool add_file(TrCore* core, GFile* file, gboolean do_start, gboolean do_p
|
|||
{
|
||||
char* str = g_file_get_path(file);
|
||||
|
||||
if ((tried = g_file_test(str, G_FILE_TEST_EXISTS)))
|
||||
if ((tried = (str != NULL) && g_file_test(str, G_FILE_TEST_EXISTS)))
|
||||
{
|
||||
loaded = !tr_ctorSetMetainfoFromFile(ctor, str);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue