Skip to content

Commit 1343ab8

Browse files
committed
Ensure fixed inputs are nullptr if the size is zero
1 parent de48e47 commit 1343ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FrameLib_Framework/FrameLib_DSP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void FrameLib_DSP::setFixedInput(unsigned long idx, const double *input, unsigne
5050
if (mInputs[idx].mFixedInput)
5151
delete[] mInputs[idx].mFixedInput;
5252

53-
mInputs[idx].mFixedInput = new double[size];
53+
mInputs[idx].mFixedInput = size ? new double[size] : nullptr;
5454

5555
if (mInputs[idx].mFixedInput)
5656
{

0 commit comments

Comments
 (0)