diff options
Diffstat (limited to 'examples/c-captured/c-captured.c')
-rw-r--r-- | examples/c-captured/c-captured.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/c-captured/c-captured.c b/examples/c-captured/c-captured.c index c914c6991..12829267c 100644 --- a/examples/c-captured/c-captured.c +++ b/examples/c-captured/c-captured.c @@ -665,7 +665,7 @@ static void syslog_event(struct nDPIsrvd_socket * const sock, } if (src_port != NULL && dst_port != NULL) { - size_t src_port_len, dst_port_len; + size_t src_port_len = 0, dst_port_len = 0; char const * const tmp_src_port_str = TOKEN_GET_VALUE(sock, src_port, &src_port_len); char const * const tmp_dst_port_str = TOKEN_GET_VALUE(sock, dst_port, &dst_port_len); if (tmp_src_port_str != NULL && tmp_dst_port_str != NULL) |