mirror of
https://github.com/transmission/transmission
synced 2025-02-25 15:32:33 +00:00
Fix potential NULL pointer dereference introduced by last commit
This commit is contained in:
parent
474aabbbc4
commit
ede21744d3
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ static bool create_path(char const* path_in, int permissions, tr_error** error)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Go one level down on each iteration and attempt to create */
|
/* Go one level down on each iteration and attempt to create */
|
||||||
for (; pp < path_end; pp += strlen(pp))
|
for (pp = pp == NULL ? p + strlen(p) : pp; pp < path_end; pp += strlen(pp))
|
||||||
{
|
{
|
||||||
*pp = TR_PATH_DELIMITER;
|
*pp = TR_PATH_DELIMITER;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue