exile_launch_get(): Remove redundant seek
This commit is contained in:
父節點
5cd0a36ced
當前提交
7b859d0aed
7
exile.c
7
exile.c
@ -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;
|
||||
|
載入中…
新增問題並參考
Block a user