exile_launch_get(): Remove redundant seek

This commit is contained in:
Albert S. 2022-12-26 18:36:17 +01:00
parent 5cd0a36ced
commit 7b859d0aed

View File

@ -1888,13 +1888,6 @@ char *exile_launch_get(struct exile_launch_params *launch_params, size_t *n)
}
}
fclose(stream);
int seek = fseek(stream, 0, SEEK_SET);
if(seek == -1)
{
EXILE_LOG_ERROR("fseek failed\n");
close(launch_result.read_fd);
return NULL;
}
close(launch_result.read_fd);
*n = size;
return result;