diff options
-rw-r--r-- | src/idevicerestore.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index ed8e5cf..3ebee61 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1202,6 +1202,11 @@ int main(int argc, char* argv[]) { break; case 'u': + if (!*optarg) { + error("ERROR: UDID must not be empty!\n"); + usage(argc, argv); + return -1; + } client->udid = strdup(optarg); break; |