Fix warning in chroot(1)

chroot.c:12:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(aux = getenv("SHELL"))
  ^
This commit is contained in:
sin 2013-10-06 20:35:30 +01:00
parent 952fa19362
commit 4b30e39348

View File

@ -9,7 +9,7 @@ main(int argc, char **argv)
{ {
char *shell[] = {"/bin/sh", "-i", NULL}, *aux; char *shell[] = {"/bin/sh", "-i", NULL}, *aux;
if(aux = getenv("SHELL")) if((aux = getenv("SHELL")))
shell[0] = aux; shell[0] = aux;
if(argc < 2) if(argc < 2)