(trunk, libT) #5467: 'transmission-daemon SEGFAULTs on startup without error message if ~/.config does not exist and ~ is not writeable' -- nice quick fix by mike.dld
This commit is contained in:
parent
72f9cb7112
commit
d49b8b6650
|
@ -2239,6 +2239,12 @@ loadBlocklists (tr_session * session)
|
|||
/* walk the blocklist directory... */
|
||||
dirname = tr_buildPath (session->configDir, "blocklists", NULL);
|
||||
odir = opendir (dirname);
|
||||
if (odir == NULL)
|
||||
{
|
||||
tr_free (dirname);
|
||||
return;
|
||||
}
|
||||
|
||||
while ((d = readdir (odir)))
|
||||
{
|
||||
char * path;
|
||||
|
|
Loading…
Reference in New Issue