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>
pull/158/head
Michele Calgaro 3 years ago
parent 0970152d07
commit a291f3a0a3
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