summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/idevicerestore.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 02c1bc1..acdd572 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -1024,7 +1024,9 @@ int main(int argc, char* argv[]) {
return -1;
}
- client->ipsw = strdup(ipsw);
+ if (ipsw) {
+ client->ipsw = strdup(ipsw);
+ }
result = idevicerestore_start(client);