The sanity check won't attempt to free uninitialized memory.

yamux
Jose Marcial Vieira Bisneto 2017-06-06 19:29:12 -03:00
parent 6c936de20e
commit aa4b433fb0
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ int ipfs_ping (int argc, char **argv)
char* repo_path = NULL;
// sanity check
local_node.peerstore = NULL;
local_node.providerstore = NULL;
if (argc < 3)
goto exit;