summaryrefslogtreecommitdiff
path: root/src/bin/scripts/droplang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/scripts/droplang.c')
-rw-r--r--src/bin/scripts/droplang.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/bin/scripts/droplang.c b/src/bin/scripts/droplang.c
index 22237dff4a1..7fadee0d513 100644
--- a/src/bin/scripts/droplang.c
+++ b/src/bin/scripts/droplang.c
@@ -90,24 +90,14 @@ main(int argc, char *argv[])
}
}
- /*
- * We set dbname from positional arguments if it is not
- * already set by option arguments -d. If not doing
- * listlangs, positional dbname must follow positional
- * langname.
- */
-
if (argc - optind > 0)
{
if (listlangs)
- {
- if (dbname == NULL)
- dbname = argv[optind++];
- }
+ dbname = argv[optind++];
else
{
langname = argv[optind++];
- if (argc - optind > 0 && dbname == NULL)
+ if (argc - optind > 0)
dbname = argv[optind++];
}
}