mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 20:50:33 +00:00
Improve initialization (fix clang warning)
This commit is contained in:
parent
424f812790
commit
fd2e5d9a00
@ -785,7 +785,7 @@ tcpsvr_t *opentcpsvr(const char *path, char *msg)
|
|||||||
{
|
{
|
||||||
tcpsvr_t *tcpsvr, tcpsvr0; // = {{0}};
|
tcpsvr_t *tcpsvr, tcpsvr0; // = {{0}};
|
||||||
char port[256] = "";
|
char port[256] = "";
|
||||||
tcpsvr0 = {{0, {0}, 0, {0, 0, 0, {0}}, 0, 0, 0, 0}, {0, {0}, 0, {0, 0, 0, {0}}, 0, 0, 0, 0}};
|
tcpsvr0 = {{0, {0}, 0, {0, 0, 0, {0}}, 0, 0, 0, 0}, {{0, {0}, 0, {0, 0, 0, {0}}, 0, 0, 0, 0}}};
|
||||||
tracet(3, "opentcpsvr: path=%s\n", path);
|
tracet(3, "opentcpsvr: path=%s\n", path);
|
||||||
|
|
||||||
if (!(tcpsvr = (tcpsvr_t *)malloc(sizeof(tcpsvr_t)))) return NULL;
|
if (!(tcpsvr = (tcpsvr_t *)malloc(sizeof(tcpsvr_t)))) return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user