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:
harry 2023-04-24 23:14:43 -04:00
parent 02baa1dfaa
commit 99bc0fa17f
1 changed files with 6 additions and 2 deletions

View File

@ -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