curl_json plugin: zero-initialize struct correctly
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 6 Mar 2016 12:44:59 +0000 (13:44 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 6 Mar 2016 12:44:59 +0000 (13:44 +0100)
commit474058f3fc0102ea4ff7d1fcd8ab5e86ae916126
treeb6cdf2f4cfcbb63d870c055da8872c22064778a7
parent2d17305678e82a679babb709d1b67280cc4507fd
curl_json plugin: zero-initialize struct correctly

Seen on FreeBSD:
curl_json.c: In function 'cj_sock_perform':
curl_json.c:864:10: warning: missing initializer for field 'sun_len' of 'struct sockaddr_un' [-Wmissing-field-initializers]
   struct sockaddr_un sa_unix = {};
          ^
In file included from curl_json.c:32:0:
/usr/include/sys/un.h:48:16: note: 'sun_len' declared here
  unsigned char sun_len; /* sockaddr len including null */
                ^
src/curl_json.c