diff --git a/bin/ls/ls.c b/bin/ls/ls.c index ea0948ef5e41..e135240ef0b7 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -639,6 +639,7 @@ display(FTSENT *p, FTSENT *list) maxflags = flen; } else flen = 0; + lattr = NULL; if (f_lomac) { lattr = get_lattr(cur); lattrlen = strlen(lattr);