Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 4ae682c

Browse files
authored
Merge pull request #276 from cipherboy/fix-potential-null-ptr-deref
Fix potential NULL pointer dereference
2 parents 7365ef1 + 88e9ca5 commit 4ae682c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ResultViewer.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,10 @@ void ResultViewer::loadContent(Scanner* scanner)
113113

114114
if (mInputBaseName.endsWith("-xccdf"))
115115
mInputBaseName.chop(QString("-xccdf").length());
116-
}
117-
if (session->isSelectedProfileTailoring()) {
118-
tailoringFilePath = session->getTailoringFilePath();
116+
117+
if (session->isSelectedProfileTailoring()) {
118+
tailoringFilePath = session->getTailoringFilePath();
119+
}
119120
}
120121

121122
mReport.clear();

0 commit comments

Comments
 (0)