diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/idevicebackup2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 0426d43..8f094c8 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -197,9 +197,9 @@ static int mkdir_with_parents(const char *dir, int mode) } int res; char *parent = strdup(dir); - parent = dirname(parent); - if (parent) { - res = mkdir_with_parents(parent, mode); + char *parentdir = dirname(parent); + if (parentdir) { + res = mkdir_with_parents(parentdir, mode); } else { res = -1; } |