summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/restore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index 227918a..e02d600 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1639,7 +1639,7 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit
while ((client->flags & FLAG_QUIT) == 0) {
// finally, if any of these message handlers returned -1 then we encountered
// an unrecoverable error, so we need to bail.
- if (error < 0) {
+ if (err < 0) {
error("ERROR: Unable to successfully restore device\n");
client->flags |= FLAG_QUIT;
}