summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c5
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;