task_database_cue_get_token - correct to 'if (rv < 0)' instead

This commit is contained in:
LibretroAdmin 2022-08-25 05:52:42 +02:00
parent c841e191f7
commit 8017410098

View File

@ -141,7 +141,7 @@ static int64_t task_database_cue_get_token(intfstream_t *fd, char *token, uint64
int64_t rv = (int64_t)intfstream_read(fd, c, 1);
if (rv == 0)
return 0;
else if (rv < 1)
else if (rv < 0)
return -1;
switch (*c)