mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: initialize 'ctx' before jumping into its scope
This commit is contained in:
parent
b15032d223
commit
dd57418494
1 changed files with 2 additions and 2 deletions
|
|
@ -328,11 +328,11 @@ struct clipboard_send {
|
|||
static bool
|
||||
fdm_send(struct fdm *fdm, int fd, int events, void *data)
|
||||
{
|
||||
struct clipboard_send *ctx = data;
|
||||
|
||||
if (events & EPOLLHUP)
|
||||
goto done;
|
||||
|
||||
struct clipboard_send *ctx = data;
|
||||
|
||||
switch (async_write(fd, ctx->data, ctx->len, &ctx->idx)) {
|
||||
case ASYNC_WRITE_REMAIN:
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue