tdefile elf plugin: prevent SEGV when unable to open an ELF file. This resolves issue TDE/tdebase#262.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a291f3a0a3)
r14.0.x
Michele Calgaro 3 years ago
parent 976094c6b9
commit 8905a8003d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -97,6 +97,7 @@ bool KElfPlugin::readInfo( KFileMetaInfo& info, uint what)
if((handle = libr_open(const_cast<char*>(info.path().ascii()), access)) == NULL)
{
kdWarning() << "failed to open file" << info.path() << endl;
return false;
}
KFileMetaInfoGroup group = appendGroup(info, "Technical");

Loading…
Cancel
Save