From 042003896f79881b1a8cd4a89d7e516792b83e4a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 15 May 2014 01:32:32 -0700 Subject: [PATCH] Early-out when outN is 0 --- utils/makehrtf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/makehrtf.c b/utils/makehrtf.c index f8ac66c6..e35c45a7 100644 --- a/utils/makehrtf.c +++ b/utils/makehrtf.c @@ -1211,6 +1211,9 @@ static void ResamplerRun (ResamplerT * rs, const uint inN, const double * in, co double r; uint j_f, j_s; + if (outN == 0) + return; + // Handle in-place operation. if (in == out) work = CreateArray (outN); -- 2.11.4.GIT