aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-15 01:32:32 -0700
committerChris Robinson <[email protected]>2014-05-15 01:32:32 -0700
commit042003896f79881b1a8cd4a89d7e516792b83e4a (patch)
tree1390aeb00b73d106d8386e0ea9872423c651444b
parent6dcd4fec7d0c520742c424eb04b286d8db2b4df9 (diff)
Early-out when outN is 0
-rw-r--r--utils/makehrtf.c3
1 files changed, 3 insertions, 0 deletions
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);