1 |
--- libs/ardour/session.cc~ 2006-05-14 09:53:33.000000000 -0700 |
2 |
+++ libs/ardour/session.cc 2006-05-14 10:20:11.000000000 -0700 |
3 |
@@ -3218,7 +3218,8 @@ |
4 |
#endif |
5 |
_passthru_buffers.push_back (p); |
6 |
|
7 |
- *p = 0; |
8 |
+ if (current_block_size > 0) |
9 |
+ *p = 0; |
10 |
|
11 |
#ifdef NO_POSIX_MEMALIGN |
12 |
p = (Sample *) malloc(current_block_size * sizeof(Sample)); |
13 |
@@ -3228,7 +3229,8 @@ |
14 |
memset (p, 0, sizeof (Sample) * current_block_size); |
15 |
_silent_buffers.push_back (p); |
16 |
|
17 |
- *p = 0; |
18 |
+ if (current_block_size > 0) |
19 |
+ *p = 0; |
20 |
|
21 |
#ifdef NO_POSIX_MEMALIGN |
22 |
p = (Sample *) malloc(current_block_size * sizeof(Sample)); |