Fixup warning introduced with 5dc8e7fd

Fix error: lib/db_x509.cpp:774:4: warning:
           add explicit braces to avoid dangling else [-Wdangling-else]
This commit is contained in:
Christian Hohnstaedt 2024-02-08 17:06:52 +01:00
parent d32ab2e0d4
commit 286ae96764

View File

@ -770,10 +770,12 @@ void db_x509::certRenewal(QModelIndexList indexes)
do_revoke(indexes, r);
// delete old certificates if requested
if (doReplace)
foreach(idx, indexes)
if (doReplace) {
foreach(idx, indexes) {
if (fromIndex<pki_x509>(idx))
deletePKI(idx);
}
}
}
catch (errorEx &err) {
XCA_ERROR(err);