summaryrefslogtreecommitdiff
path: root/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell.c')
-rw-r--r--shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.c b/shell.c
index d169c64c..bbc8a66c 100644
--- a/shell.c
+++ b/shell.c
@@ -1607,7 +1607,7 @@ set_shell_name (argv0)
{
if (*shell_name == '-')
shell_name++;
- login_shell++;
+ login_shell = 1;
}
if (shell_name[0] == 's' && shell_name[1] == 'h' && shell_name[2] == '\0')