aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 1ebdecd..4c66529 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2098,7 +2098,10 @@ static char *coolsize(off_t size)
static char *get_file_sym(mode_t mode)
{
- static char ind[2] = "\0\0";
+ static char ind[2];
+
+ ind[0] = '\0';
+ ind[1] = '\0';
switch (mode & S_IFMT) {
case S_IFREG: