aboutsummaryrefslogtreecommitdiffstats
path: root/utils/makehrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-20 21:23:25 -0700
committerChris Robinson <[email protected]>2017-08-20 21:23:25 -0700
commit877ecda14d3b891405e4f803139b686900fd76c4 (patch)
treec25eae0b4308c956ed06268ba8250f02ab1f64b5 /utils/makehrtf.c
parent079e4b1edb607b686d5f203fbf96ddd814e3fe89 (diff)
Properly check if a pointer is different when cleaning it up
Diffstat (limited to 'utils/makehrtf.c')
-rw-r--r--utils/makehrtf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makehrtf.c b/utils/makehrtf.c
index a76aefe6..a4286ee3 100644
--- a/utils/makehrtf.c
+++ b/utils/makehrtf.c
@@ -1411,7 +1411,7 @@ static void ResamplerRun(ResamplerT *rs, const uint inN, const double *in, const
work[i] = r;
}
// Clean up after in-place operation.
- if(in == out)
+ if(work != out)
{
for(i = 0;i < outN;i++)
out[i] = work[i];
@@ -2853,7 +2853,7 @@ static int ProcessDefinition(const char *inName, const uint outRate, const uint
fclose(fp);
return 0;
}
- if(inName != NULL)
+ if(fp != stdin)
fclose(fp);
if(equalize)
{