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

This commit is contained in:
Jose Marcial Vieira Bisneto 2017-06-06 19:29:12 -03:00
parent 6c936de20e
commit aa4b433fb0

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;