Skip to content
Snippets Groups Projects
Commit 33eefa2e authored by DONG Anyuan's avatar DONG Anyuan
Browse files

ReFix Coverity Scan CID 300452 (Using uninitialized value addr. Field...

ReFix Coverity Scan CID 300452 (Using uninitialized value addr. Field addr.sin_zero is uninitialized when calling connect.)
parent 616ab187
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,6 @@ socket_link_t *new_link_client(const char *server, int port) ...@@ -123,7 +123,6 @@ socket_link_t *new_link_client(const char *server, int port)
struct sockaddr_in addr; struct sockaddr_in addr;
int no_delay; int no_delay;
memset(&addr,0,sizeof(struct sockaddr_in));
ret = calloc(1, sizeof(socket_link_t)); ret = calloc(1, sizeof(socket_link_t));
if (ret == NULL) { if (ret == NULL) {
LOG_E(MAC, "%s:%d: out of memory\n", __FILE__, __LINE__); LOG_E(MAC, "%s:%d: out of memory\n", __FILE__, __LINE__);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment