(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:
Jordan Lee 2014-01-21 02:27:46 +00:00
parent 72f9cb7112
commit d49b8b6650
1 changed files with 6 additions and 0 deletions

View File

@ -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;