mirror of
https://github.com/ErikAndren/cue2pops-mac.git
synced 2025-04-19 15:38:04 +02:00
Check if the headerbuf malloc succeeded
This commit is contained in:
parent
07ecab26f9
commit
ecc773c38f
1 changed files with 4 additions and 0 deletions
|
@ -544,6 +544,10 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
headerbuf = malloc(HEADERSIZE * 2);
|
||||
if (headerbuf == NULL) {
|
||||
printf("Error: Failed to allocate header buffer\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*******************************************************************************************************
|
||||
********************************************************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue