Fix DEBUG codepath

This commit is contained in:
LibretroAdmin 2022-07-30 12:50:59 +02:00
parent 40c974a19c
commit 19e4b8c0ca
1 changed files with 3 additions and 1 deletions

View File

@ -254,13 +254,15 @@ error:
static int task_database_cue_get_serial(const char *name, char* serial)
{
int rv;
char track_path[PATH_MAX_LENGTH];
uint64_t offset = 0;
uint64_t size = 0;
track_path[0] = '\0';
if ((cue_find_track(name, true, &offset, &size, track_path, sizeof(track_path))) < 0)
if ((rv = cue_find_track(name, true, &offset, &size, track_path,
sizeof(track_path))) < 0)
{
#ifdef DEBUG
RARCH_LOG("%s: %s\n",