mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 09:00:52 +02:00
Fix a couple of errors reported by Wipro.
This commit is contained in:
parent
8e94cd5369
commit
c3cc10a265
@ -446,7 +446,7 @@ private void indirect_command(filename, oldarg0)
|
|||||||
argv[0] = oldarg0;
|
argv[0] = oldarg0;
|
||||||
argc = 1;
|
argc = 1;
|
||||||
} else {
|
} else {
|
||||||
int i = 1;
|
int i = 1;
|
||||||
char arg[100];
|
char arg[100];
|
||||||
while (get_arg(argfile, arg)) i++;
|
while (get_arg(argfile, arg)) i++;
|
||||||
fclose(argfile);
|
fclose(argfile);
|
||||||
@ -460,6 +460,7 @@ private void indirect_command(filename, oldarg0)
|
|||||||
strcpy(argv[i], arg);
|
strcpy(argv[i], arg);
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
fclose(argfile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,7 +58,8 @@ private char *chunk_alloc(seq_type seq, int size)
|
|||||||
if (size & 1) size++; /* make it even */
|
if (size & 1) size++; /* make it even */
|
||||||
if (chunk->free + size >= CHUNK_SIZE) {
|
if (chunk->free + size >= CHUNK_SIZE) {
|
||||||
chunk_type new_chunk = chunk_create(FALSE);
|
chunk_type new_chunk = chunk_create(FALSE);
|
||||||
if (!chunk) {
|
if (!new_chunk)
|
||||||
|
{
|
||||||
gprintf(FATAL, "Out of memory while reading seq\n");
|
gprintf(FATAL, "Out of memory while reading seq\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user