exile_launch_get(): Remove redundant seek
This commit is contained in:
parent
5cd0a36ced
commit
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);
|
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);
|
close(launch_result.read_fd);
|
||||||
*n = size;
|
*n = size;
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user