summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-30 03:51:26 +0200
committerGravatar Martin Szulecki2012-11-07 21:55:24 +0100
commitb44ad07bec397f6cd1c597946efe86e5ed2a490b (patch)
tree73cfbf5d1dfc7bda058e5fcc0bca999ede663e07
parentb9449722e84379cc15bfc5b2b35b94ea5787eccc (diff)
downloadidevicerestore-b44ad07bec397f6cd1c597946efe86e5ed2a490b.tar.gz
idevicerestore-b44ad07bec397f6cd1c597946efe86e5ed2a490b.tar.bz2
main: fix crash when using -l option
-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);