1
0
Fork 0
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:
Erik Andrén Zachrisson 2015-11-01 12:53:06 +01:00
parent 07ecab26f9
commit ecc773c38f

View file

@ -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;
}
/*******************************************************************************************************
********************************************************************************************************