Fixed issue with compiler error.

This commit is contained in:
Nicolás A. Ortega 2017-07-19 12:02:49 -05:00
parent 7cb4792946
commit 9568de6710
No known key found for this signature in database
GPG Key ID: 3D786FB3123FF1DD
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ include_directories(
"include/")
set(SRCS
src/error.c
src/neocomm.c
src/nodes.c)

View File

@ -111,7 +111,7 @@ struct NeoComm_node *NeoComm_add_node(struct NeoComm_address addr) {
return &node_list[i];
}
struct NeoComm_node *new_node;
struct NeoComm_node *new_node = NULL;
for(unsigned int i = 0; i < node_max; ++i)
{
if(!node_list[i].address.address)