forked from agorise/c-ipfs
The sanity check won't attempt to free uninitialized memory.
This commit is contained in:
parent
6c936de20e
commit
aa4b433fb0
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue