summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-07-23 16:19:30 +0200
committerGravatar Martin Szulecki2010-10-04 00:29:16 +0200
commit23fd94e78dd93ce4a667515c5096f5d7cac93258 (patch)
tree2dc7dcbad1455958247bd0a818f7b0a59c117824
parent9bdd686a44d376f1c9c8533e30e4ce9dfb439365 (diff)
downloadlibimobiledevice-23fd94e78dd93ce4a667515c5096f5d7cac93258.tar.gz
libimobiledevice-23fd94e78dd93ce4a667515c5096f5d7cac93258.tar.bz2
idevicebackup: Do not save just the last hunk of first file to backup
-rw-r--r--tools/idevicebackup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index 1119bc0..9ac01a8 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -768,7 +768,7 @@ int main(int argc, char *argv[])
/* save <hash>.mddata */
node = plist_dict_get_item(node_tmp, "BackupFileInfo");
- if (node_tmp && file_path) {
+ if (node_tmp) {
node = plist_dict_get_item(node_tmp, "DLFileDest");
plist_get_string_val(node, &file_path);