diff --git a/src/applet/profile/download.c b/src/applet/profile/download.c index 690801e..c05ca8b 100644 --- a/src/applet/profile/download.c +++ b/src/applet/profile/download.c @@ -47,12 +47,10 @@ static int applet_main(int argc, char **argv) break; case 'a': activation_code = strdup(optarg); - if (strncmp(activation_code, "LPA:", 4) != 0) + if (strncmp(activation_code, "LPA:", 4) == 0) { - jprint_error("invalid activation code format", NULL); - goto err; + activation_code += 4; // ignore uri scheme } - activation_code += 4; // skip "LPA:" prefix break; case 'h': case '?':