Add nullptr check to ensure that libarchive version strings are valid before printing. They will be null when a particular format or filter is not supported.
This commit is contained in:
parent
02baa1dfaa
commit
99bc0fa17f
|
@ -215,8 +215,12 @@ AboutWindow::AboutWindow(QWidget *parent)
|
|||
i=0;
|
||||
while (libArcName[i])
|
||||
{
|
||||
sprintf( stmp, " %s %s\n", libArcName[i], libArcVersion[i]); i++;
|
||||
credits->insertPlainText( stmp );
|
||||
if (libArcVersion[i])
|
||||
{
|
||||
sprintf( stmp, " %s %s\n", libArcName[i], libArcVersion[i]);
|
||||
credits->insertPlainText( stmp );
|
||||
}
|
||||
i++;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue