Mercurial > illumos > git > illumos-gate
changeset 19272:18c3b8d11ca1
11979 libshell: bitwise comparison always evaluates to false
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Robert Mustacchi <rm@fingolfin.org>
author | Toomas Soome <tsoome@me.com> |
---|---|
date | Tue, 27 Nov 2018 11:31:26 +0200 |
parents | 70ce0aa98662 |
children | 7b163ea27278 |
files | usr/src/lib/libshell/common/sh/nvtree.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/libshell/common/sh/nvtree.c Fri Nov 29 00:08:41 2019 +0000 +++ b/usr/src/lib/libshell/common/sh/nvtree.c Tue Nov 27 11:31:26 2018 +0200 @@ -428,7 +428,7 @@ if ((attr=nv_isattr(np,~NV_NOFREE)) || fp) { - if((attr&NV_NOPRINT|NV_INTEGER)==NV_NOPRINT) + if((attr&(NV_NOPRINT|NV_INTEGER))==NV_NOPRINT) attr &= ~NV_NOPRINT; if(!attr && !fp) return;