Skip to content

Commit 4813838

Browse files
committed
try to fix clang scan-build warning: Division by zero [core.DivideZero]
1 parent 5bd255b commit 4813838

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tuplesort15.c

+1
Original file line numberDiff line numberDiff line change
@@ -2946,6 +2946,7 @@ selectnewtape(Tuplesortstate *state)
29462946
* We have reached the max number of tapes. Append to an existing
29472947
* tape.
29482948
*/
2949+
Assert(state->nOutputTapes != 0);
29492950
state->destTape = state->outputTapes[state->nOutputRuns % state->nOutputTapes];
29502951
state->nOutputRuns++;
29512952
}

0 commit comments

Comments
 (0)