mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix segfaulting on empty files
This commit is contained in:
parent
1cd8a3f31b
commit
5f31b508c9
@ -61,7 +61,11 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
int i = archive.getNumFiles();
|
||||
cerr << i;
|
||||
cerr << archive.getFileNames().at(0).toStdString();
|
||||
QList<QString> filenames = archive.getFileNames();
|
||||
if (!filenames.isEmpty())
|
||||
{
|
||||
cerr << archive.getFileNames().at(0).toStdString();
|
||||
}
|
||||
}
|
||||
}
|
||||
quint64 end = timer.elapsed();
|
||||
|
Loading…
x
Reference in New Issue
Block a user