1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Fix a couple of errors reported by Wipro.

This commit is contained in:
v.audacity
2010-09-13 23:42:21 +00:00
parent 8e94cd5369
commit c3cc10a265
2 changed files with 4 additions and 2 deletions

View File

@@ -58,7 +58,8 @@ private char *chunk_alloc(seq_type seq, int size)
if (size & 1) size++; /* make it even */
if (chunk->free + size >= CHUNK_SIZE) {
chunk_type new_chunk = chunk_create(FALSE);
if (!chunk) {
if (!new_chunk)
{
gprintf(FATAL, "Out of memory while reading seq\n");
return NULL;
}