diff options
author | Nikias Bassen | 2012-07-30 03:51:26 +0200 |
---|---|---|
committer | Martin Szulecki | 2012-11-07 21:55:24 +0100 |
commit | b44ad07bec397f6cd1c597946efe86e5ed2a490b (patch) | |
tree | 73cfbf5d1dfc7bda058e5fcc0bca999ede663e07 /src | |
parent | b9449722e84379cc15bfc5b2b35b94ea5787eccc (diff) | |
download | idevicerestore-b44ad07bec397f6cd1c597946efe86e5ed2a490b.tar.gz idevicerestore-b44ad07bec397f6cd1c597946efe86e5ed2a490b.tar.bz2 |
main: fix crash when using -l option
Diffstat (limited to 'src')
-rw-r--r-- | src/idevicerestore.c | 4 |
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); |