Skip to content

Commit

Permalink
gearmand_port_st refactoring
Browse files Browse the repository at this point in the history
- members init
- nullptr
  • Loading branch information
Alexei Pastuchov committed May 30, 2017
1 parent 662713f commit 0f9e611
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libgearman-server/struct/port.h
Expand Up @@ -53,10 +53,11 @@ struct gearmand_port_st
struct event *listen_event;

gearmand_port_st() :
listen_count(0),
_add_fn(NULL),
listen_fd(NULL),
listen_event(NULL)
listen_count{0},
_add_fn{nullptr},
_remove_fn{nullptr},
listen_fd{nullptr},
listen_event{nullptr}
{
port[0]= 0;
}
Expand Down

0 comments on commit 0f9e611

Please sign in to comment.