coverity 226247

This commit is contained in:
Philippe Teuwen 2019-10-09 21:14:55 +02:00
parent e3b267112f
commit 30168d1e20

View file

@ -1064,7 +1064,7 @@ static int searchFinalFile(char **foundpath, const char *pm3dir, const char *sea
}
}
// 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));
if (path == NULL)
goto out;