aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-15 17:45:22 -0400
committerDavid Robillard <d@drobilla.net>2022-07-16 09:33:05 -0400
commit22f3c5d2fd621d654ad326bc14958688e43c738a (patch)
treeb62efab108fa26dda6ea6fa8ab9459cf0da412de /src
parent8a2482ad1b5b4f915d62c47caa2f225b475ba43a (diff)
downloadserd-22f3c5d2fd621d654ad326bc14958688e43c738a.tar.gz
serd-22f3c5d2fd621d654ad326bc14958688e43c738a.tar.bz2
serd-22f3c5d2fd621d654ad326bc14958688e43c738a.zip
Remove redundant check for command line argument count
Diffstat (limited to 'src')
-rw-r--r--src/serdi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 7f57dc5f..7eaf1e73 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -182,9 +182,6 @@ int
main(int argc, char** argv)
{
const char* const prog = argv[0];
- if (argc < 2) {
- return print_usage(prog, true);
- }
FILE* in_fd = NULL;
SerdSyntax input_syntax = (SerdSyntax)0;
@@ -279,7 +276,7 @@ main(int argc, char** argv)
if (a == argc) {
SERDI_ERROR("missing input\n");
- return 1;
+ return print_usage(prog, true);
}
#ifdef _WIN32