From b44ad07bec397f6cd1c597946efe86e5ed2a490b Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 30 Jul 2012 03:51:26 +0200 Subject: main: fix crash when using -l option --- src/idevicerestore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/idevicerestore.c') 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); -- cgit v1.1-32-gdbae