aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-08-04 22:25:17 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-08-04 22:25:17 +0530
commit3a61b3fc7f61c226f3a6625a49c588ebac6a15a2 (patch)
treee823a3a086bdef670c08d42af2996d9f84e2a1aa /src
parent66bb5a67d60e89fef15c9c08b9e9b9c490e3678e (diff)
downloadnnn-3a61b3fc7f61c226f3a6625a49c588ebac6a15a2.tar.gz
Fix build break
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 22b559e..8b3214c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3400,7 +3400,8 @@ static char get_ind(mode_t mode, bool perms, uchar *pair)
*pair = C_CHR;
return '\0';
default:
- *pair = C_UND;
+ if (!perms)
+ *pair = C_UND;
return '?';
}
}