Skip to content

Commit

Permalink
Cleanup - copy struct
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Jul 4, 2024
1 parent b2585a5 commit 2d552bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,7 @@ int sockread(char *s, int *len, sock_list *slist, int slistmax, int tclonly)
maxfd = maxfd_e;

/* select() may modify the timeval argument - copy it */
t.tv_sec = td->blocktime.tv_sec;
t.tv_usec = td->blocktime.tv_usec;
t = td->blocktime;

call_hook(HOOK_PRE_SELECT);
x = select((SELECT_TYPE_ARG1) maxfd + 1,
Expand Down

0 comments on commit 2d552bc

Please sign in to comment.