From e719f5944b5d3f5922fc0b62143c5b340af1643f Mon Sep 17 00:00:00 2001 From: Pavel Borisov <pashkin.elfe@gmail.com> Date: Mon, 30 May 2022 20:14:45 +0400 Subject: [PATCH] Extra assert --- src/tuplesort15.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tuplesort15.c b/src/tuplesort15.c index 6f7a59f5d6..c2d856146a 100644 --- a/src/tuplesort15.c +++ b/src/tuplesort15.c @@ -2930,6 +2930,7 @@ selectnewtape(Tuplesortstate *state) * run, until maxTapes is reached. After that, we assign new runs to the * existing tapes in a round robin fashion. */ + Assert(state->maxTapes >= 1); if (state->nOutputTapes < state->maxTapes) { /* Create a new tape to hold the next run */