mirror of
https://github.com/nginx/nginx.git
synced 2025-06-06 00:42:40 +08:00
Events: fixed copying of old events in poll init.
Previously, the code incorrectly assumed "ngx_event_t *" elements instead of "struct pollfd". This is mostly cosmetic change, as this code is never called now.
This commit is contained in:
parent
12645b46e9
commit
3dcad9c5d6
@ -84,7 +84,7 @@ ngx_poll_init(ngx_cycle_t *cycle, ngx_msec_t timer)
|
||||
}
|
||||
|
||||
if (event_list) {
|
||||
ngx_memcpy(list, event_list, sizeof(ngx_event_t *) * nevents);
|
||||
ngx_memcpy(list, event_list, sizeof(struct pollfd) * nevents);
|
||||
ngx_free(event_list);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user