changeset 25070:60b34bf9a41e

100l, someone mixed up && and ||, so if allocation of only one buffers failed that would not be detected.
author reimar
date Sun, 18 Nov 2007 15:48:20 +0000
parents d2f7027f0556
children a961cea10603
files libaf/af_scaletempo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af_scaletempo.c	Sun Nov 18 14:57:59 2007 +0000
+++ b/libaf/af_scaletempo.c	Sun Nov 18 15:48:20 2007 +0000
@@ -367,7 +367,7 @@
         int32_t* pw;
         s->buf_pre_corr = realloc(s->buf_pre_corr, s->bytes_overlap * 2);
         s->table_window = realloc(s->table_window, s->bytes_overlap * 2 - nch * bps * 2);
-        if(!s->buf_pre_corr && !s->table_window) {
+        if(!s->buf_pre_corr || !s->table_window) {
           af_msg(AF_MSG_FATAL, "[scaletempo] Out of memory\n");
           return AF_ERROR;
         }