still more PR #1364

Earlier commit left out an intended line, resulting in the sanity
check being bogus because the incomplete test wasn't impossible.
This commit is contained in:
PatR
2025-01-13 16:55:58 -08:00
parent 1b8bc6fc29
commit f32e32d447

View File

@@ -364,8 +364,9 @@ check_version(
{
if (!filename) {
#ifdef EXTRA_SANITY_CHECKS
impossible("check_version() called with"
" 'complain'=True but 'filename'=Null");
if (complain)
impossible("check_version() called with"
" 'complain'=True but 'filename'=Null");
#endif
complain = FALSE; /* 'complain' requires 'filename' for pline("%s") */
}