Fix use of uninitialized variable
This commit is contained in:
parent
7d3418e9c7
commit
1a13f39cf6
1 changed files with 3 additions and 4 deletions
|
@ -144,6 +144,7 @@ int ipfs_dns (int argc, char **argv)
|
||||||
free (*txt);
|
free (*txt);
|
||||||
free (txt);
|
free (txt);
|
||||||
free (param);
|
free (param);
|
||||||
|
param = path;
|
||||||
|
|
||||||
if (! r) {
|
if (! r) {
|
||||||
// not recursive.
|
// not recursive.
|
||||||
|
@ -153,11 +154,9 @@ int ipfs_dns (int argc, char **argv)
|
||||||
if (memcmp(path, "/ipfs/", 6) == 0) {
|
if (memcmp(path, "/ipfs/", 6) == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
param = path;
|
|
||||||
} while (--r);
|
} while (--r);
|
||||||
fprintf (stdout, "%s\n", path);
|
fprintf (stdout, "%s\n", param);
|
||||||
free (path);
|
free (param);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue