mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
neutrino.cpp: fix possible segfault , suplement to 47adab931b
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6ac36258d6
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-10-02 (Tue, 02 Oct 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -561,6 +561,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
if(g_settings.auto_delete) {
|
||||
if(strcmp(g_settings.timeshiftdir, g_settings.network_nfs_recordingdir)) {
|
||||
DIR *d = opendir(timeshiftDir);
|
||||
if(d){
|
||||
while (struct dirent *e = readdir(d))
|
||||
{
|
||||
std::string filename = e->d_name;
|
||||
@@ -572,6 +573,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
closedir(d);
|
||||
}
|
||||
}
|
||||
}
|
||||
g_settings.record_hours = configfile.getInt32( "record_hours", 4 );
|
||||
g_settings.filesystem_is_utf8 = configfile.getBool("filesystem_is_utf8" , true );
|
||||
|
||||
|
Reference in New Issue
Block a user