From bba2b3d0c79dcbe1985d004f843127b0aa35430b Mon Sep 17 00:00:00 2001 From: tihmstar Date: Mon, 5 Dec 2016 12:38:11 +0100 Subject: [PATCH] fixed crash when no device connected --- futurerestore/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futurerestore/main.cpp b/futurerestore/main.cpp index b7d8e326..e40e72f4 100644 --- a/futurerestore/main.cpp +++ b/futurerestore/main.cpp @@ -125,7 +125,7 @@ int main(int argc, const char * argv[]) { } futurerestore client; - client.init(); + if (!client.init()) reterror(-3,"can't init, no device found\n"); if (apticketPath) client.loadAPTicket(apticketPath);