diff options
author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-07-24 07:44:34 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-07-24 07:44:34 +0200 |
commit | 62756fdb4945a80f4a53e6d354d5d93f51035517 (patch) | |
tree | 11c0fa7b3e72af93a447c8b75c6b31b4e69fb91e | |
parent | d032b6159719b2fbbbd550781b378ca79a25d3a2 (diff) | |
download | st-62756fdb4945a80f4a53e6d354d5d93f51035517.tar.gz st-62756fdb4945a80f4a53e6d354d5d93f51035517.zip |
Fix style in execsh
-rw-r--r-- | st.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1329,9 +1329,8 @@ execsh(void) | |||
1329 | die("who are you?\n"); | 1329 | die("who are you?\n"); |
1330 | } | 1330 | } |
1331 | 1331 | ||
1332 | if (!(sh = getenv("SHELL"))) { | 1332 | if ((sh = getenv("SHELL")) == NULL) |
1333 | sh = (pw->pw_shell[0]) ? pw->pw_shell : shell; | 1333 | sh = (pw->pw_shell[0]) ? pw->pw_shell : shell; |
1334 | } | ||
1335 | 1334 | ||
1336 | if (opt_cmd) | 1335 | if (opt_cmd) |
1337 | prog = opt_cmd[0]; | 1336 | prog = opt_cmd[0]; |