diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-09-05 09:47:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-09-05 09:47:09 +0000 |
commit | 6d272eaaf3d1bfea720b34e3a1d58a2ea1521e76 (patch) | |
tree | 89d2dae1a4356bad5287853acb2fcc18184b0efe /bin | |
parent | 4decf6d93fd3fb8a89aff8b3adeb313d5f6d86ba (diff) |
Add brackets to clarify assignments that are the result of a test operator.
ok deraadt@ looks correct millert@ jung@
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ksh/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/path.c b/bin/ksh/path.c index f20823faab4..a6973724bb2 100644 --- a/bin/ksh/path.c +++ b/bin/ksh/path.c @@ -1,4 +1,4 @@ -/* $OpenBSD: path.c,v 1.12 2005/03/30 17:16:37 deraadt Exp $ */ +/* $OpenBSD: path.c,v 1.13 2015/09/05 09:47:08 jsg Exp $ */ #include "sh.h" #include <sys/stat.h> @@ -116,7 +116,7 @@ simplify_path(char *path) if (!*path) return; - if ((isrooted = path[0] == '/')) + if ((isrooted = (path[0] == '/'))) very_start++; /* Before After |