summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
Diffstat (limited to 'daemons')
-rw-r--r--daemons/console-run.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/daemons/console-run.c b/daemons/console-run.c
index 12a00045..0cb764d0 100644
--- a/daemons/console-run.c
+++ b/daemons/console-run.c
@@ -127,14 +127,11 @@ open_console (char **namep)
return 0;
}
+ terminal = TERMINAL_FIRST_TRY;
+ argz_len = sizeof TERMINAL_FIRST_TRY;
for (try = 1; try < 3; ++try)
{
- if (try == 1)
- {
- terminal = TERMINAL_FIRST_TRY;
- argz_len = sizeof TERMINAL_FIRST_TRY;
- }
- else if (try == 2)
+ if (try == 2)
{
terminal = TERMINAL_SECOND_TRY;
argz_len = sizeof TERMINAL_SECOND_TRY;