From f32e32d4470c7e34ab985e277e7c97f2b6b51a1c Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 13 Jan 2025 16:55:58 -0800 Subject: [PATCH] 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. --- src/version.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/version.c b/src/version.c index fa4dd3d9b..34085a8af 100644 --- a/src/version.c +++ b/src/version.c @@ -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") */ }