reformatted

This commit is contained in:
Markus Kohler 2017-03-31 18:03:31 +02:00 committed by GitHub
parent af11439bd5
commit 340a1613bb
1 changed files with 2 additions and 4 deletions

View File

@ -1480,14 +1480,12 @@ static void exit_with_success(VteTerminal *) {
} }
static char *get_user_shell_with_fallback() { static char *get_user_shell_with_fallback() {
if (const char *env = g_getenv("SHELL") ) if (const char *env = g_getenv("SHELL") ) {
{
if (!((env != NULL) && (env[0] == '\0'))) if (!((env != NULL) && (env[0] == '\0')))
return g_strdup(env); return g_strdup(env);
} }
if (char *command = vte_get_user_shell()) if (char *command = vte_get_user_shell()) {
{
if (!((command != NULL) && (command[0] == '\0'))) if (!((command != NULL) && (command[0] == '\0')))
return command; return command;
} }