libcue
libcue copied to clipboard
Change null pointer check order in cd_get_track
The check of whether cd
is NULL should come before accessing cd->ntrack
, otherwise a program will still crash with a null pointer.