aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/libhicnctrl/src')
-rw-r--r--ctrl/libhicnctrl/src/api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/src/api.c b/ctrl/libhicnctrl/src/api.c
index 5e8536480..7e6a80254 100644
--- a/ctrl/libhicnctrl/src/api.c
+++ b/ctrl/libhicnctrl/src/api.c
@@ -565,7 +565,8 @@ hc_sock_get_fd(hc_sock_t * s)
int
hc_sock_connect(hc_sock_t * s)
{
- struct sockaddr_storage ss = { 0 };
+ struct sockaddr_storage ss;
+ memset(&ss, 0, sizeof(struct sockaddr_storage));
if (hc_sock_parse_url(s->url, (struct sockaddr *)&ss) < 0)
goto ERR_PARSE;