Skip to content

Commit

Permalink
Initialize log structure properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Valery Kholodkov committed Mar 8, 2010
1 parent 2f34ec8 commit 69511cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ngx_http_udplog_module.c
Expand Up @@ -328,6 +328,11 @@ static ngx_int_t ngx_udplog_init_endpoint(ngx_conf_t *cf, ngx_udp_endpoint_t *en
uc->log = &cf->cycle->new_log;
#else
uc->log = cf->cycle->new_log;
#if defined nginx_version && nginx_version >= 8032
uc->log.handler = NULL;
uc->log.data = NULL;
uc->log.action = "logging";
#endif
#endif

return NGX_OK;
Expand Down

0 comments on commit 69511cc

Please sign in to comment.