… | |
… | |
1601 | const char *argv0, *shell; |
1601 | const char *argv0, *shell; |
1602 | |
1602 | |
1603 | if ((shell = getenv ("SHELL")) == NULL || *shell == '\0') |
1603 | if ((shell = getenv ("SHELL")) == NULL || *shell == '\0') |
1604 | shell = "/bin/sh"; |
1604 | shell = "/bin/sh"; |
1605 | |
1605 | |
1606 | argv0 = (const char *)rxvt_basename (shell); |
1606 | argv0 = rxvt_basename (shell); |
1607 | |
1607 | |
1608 | if (option (Opt_loginShell)) |
1608 | if (option (Opt_loginShell)) |
1609 | { |
1609 | { |
1610 | login = (char *)rxvt_malloc (strlen (argv0) + 2); |
1610 | login = (char *)rxvt_malloc (strlen (argv0) + 2); |
1611 | |
1611 | |