Skip to content

Commit

Permalink
Add nullptr check to ensure that libarchive version strings are valid…
Browse files Browse the repository at this point in the history
… before printing. They will be null when a particular format or filter is not supported.
  • Loading branch information
thor2016 committed Apr 25, 2023
1 parent 02baa1d commit 99bc0fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/drivers/Qt/AboutWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 99bc0fa

Please sign in to comment.