From: Arun Prakash Jana Date: Mon, 4 Mar 2019 18:07:51 +0000 (+0530) Subject: Fix directory indicator X-Git-Tag: v2.4~73 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b2aea5c619ec6bf56a6bf7d3020dc0fde4426c5e;p=nnn.git Fix directory indicator --- diff --git a/src/nnn.c b/src/nnn.c index 1ebdecdd..4c66529c 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: