Forráskód Böngészése

Fix style in execsh

Roberto E. Vargas Caballero 9 éve
szülő
commit
62756fdb49
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      st.c

+ 1 - 2
st.c

@@ -1329,9 +1329,8 @@ execsh(void)
 			die("who are you?\n");
 	}
 
-	if (!(sh = getenv("SHELL"))) {
+	if ((sh = getenv("SHELL")) == NULL)
 		sh = (pw->pw_shell[0]) ? pw->pw_shell : shell;
-	}
 
 	if (opt_cmd)
 		prog = opt_cmd[0];