Fix some coverity issues

This commit is contained in:
heckflosse
2017-06-14 17:02:33 +02:00
parent 31d1f2f52b
commit c4f27b2c13
12 changed files with 16 additions and 15 deletions

View File

@@ -190,8 +190,7 @@ bool ProfileStore::parseDir (Glib::ustring& realPath, Glib::ustring& virtualPath
}
// walking through the directory
Glib::Dir* dir = nullptr;
dir = new Glib::Dir (realPath);
Glib::Dir* dir = new Glib::Dir (realPath);
for (Glib::DirIterator i = dir->begin(); i != dir->end(); ++i) {
currDir = *i;