commit 4b30e39348245ef99e3c2030295e54ff01c8cf21
parent 952fa19362bfcc4c68cdb4a89024c13998764549
Author: sin <sin@2f30.org>
Date: Sun, 6 Oct 2013 20:35:30 +0100
Fix warning in chroot(1)
chroot.c:12:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(aux = getenv("SHELL"))
^
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chroot.c b/chroot.c
@@ -9,7 +9,7 @@ main(int argc, char **argv)
{
char *shell[] = {"/bin/sh", "-i", NULL}, *aux;
- if(aux = getenv("SHELL"))
+ if((aux = getenv("SHELL")))
shell[0] = aux;
if(argc < 2)