dirname cant return null.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2020-07-12 10:29:45 +01:00
parent ce0db1f74f
commit 2ebcb856a3

View file

@ -272,10 +272,7 @@ namespace
char * temp = strdup(absPath);
const char * dir = dirname(temp);
// dir points inside temp!
if (dir)
{
chdir(dir);
}
chdir(dir);
Snapshot_SetFilename(absPath);
free(temp);