usage if !username or !device

This commit is contained in:
Jan-Piet Mens
2015-08-20 21:33:16 +02:00
parent 72b1dd979f
commit b73f1c4db9
+4
View File
@@ -105,7 +105,11 @@ int main(int argc, char **argv)
} else if (username && device && (argc > 0)) {
fprintf(stderr, "%s: filename with --user and --device is not supported\n", progname);
return (-1);
} else if (!username || !device) {
usage(progname);
}
/*