Skip to content

Commit

Permalink
freeswitch: Avoid "missing initializer" gcc error
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Feb 7, 2017
1 parent 89d73b3 commit 5dec006
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/freeswitch/esl/src/esl.c
Expand Up @@ -913,9 +913,11 @@ ESL_DECLARE(int) esl_wait_sock(esl_socket_t sock, uint32_t ms, esl_poll_t flags)
#ifdef ESL_USE_POLL
ESL_DECLARE(int) esl_wait_sock(esl_socket_t sock, uint32_t ms, esl_poll_t flags)
{
struct pollfd pfds[2] = { { 0 } };
struct pollfd pfds[2];
int s = 0, r = 0;

memset(pfds, 0, 2 * sizeof *pfds);

if (sock == ESL_SOCK_INVALID) {
return ESL_SOCK_INVALID;
}
Expand Down

0 comments on commit 5dec006

Please sign in to comment.