diff --git a/cue2pops.c b/cue2pops.c index 642bdef..d883c3c 100644 --- a/cue2pops.c +++ b/cue2pops.c @@ -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; + } /******************************************************************************************************* ********************************************************************************************************