dirname cant return null.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
ce0db1f74f
commit
2ebcb856a3
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue