mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
coverity 226247
This commit is contained in:
parent
e3b267112f
commit
30168d1e20
1 changed files with 1 additions and 1 deletions
|
@ -1064,7 +1064,7 @@ static int searchFinalFile(char **foundpath, const char *pm3dir, const char *sea
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// try pm3 dirs in pm3 installation dir (install mode)
|
// try pm3 dirs in pm3 installation dir (install mode)
|
||||||
{
|
if (exec_path != NULL) {
|
||||||
char *path = calloc(strlen(exec_path) + strlen(PM3_SHARE_RELPATH) + strlen(pm3dir) + strlen(filename) + 1, sizeof(char));
|
char *path = calloc(strlen(exec_path) + strlen(PM3_SHARE_RELPATH) + strlen(pm3dir) + strlen(filename) + 1, sizeof(char));
|
||||||
if (path == NULL)
|
if (path == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in a new issue