diff options
| -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) | |||
| 197 | } | 197 | } |
| 198 | int res; | 198 | int res; |
| 199 | char *parent = strdup(dir); | 199 | char *parent = strdup(dir); |
| 200 | parent = dirname(parent); | 200 | char *parentdir = dirname(parent); |
| 201 | if (parent) { | 201 | if (parentdir) { |
| 202 | res = mkdir_with_parents(parent, mode); | 202 | res = mkdir_with_parents(parentdir, mode); |
| 203 | } else { | 203 | } else { |
| 204 | res = -1; | 204 | res = -1; |
| 205 | } | 205 | } |
