summaryrefslogtreecommitdiffstats
path: root/bin/ls/print.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-12-28 18:20:23 +0000
committerjoe <joe@FreeBSD.org>2001-12-28 18:20:23 +0000
commit731819d234316237964ff0efc06686e69ff8a776 (patch)
tree8587db1691e2849266b34862986b137c573e32ec /bin/ls/print.c
parentdcc10c8b7bb3b7cde69a46f68456a1ed92d1c8fc (diff)
downloadFreeBSD-src-731819d234316237964ff0efc06686e69ff8a776.zip
FreeBSD-src-731819d234316237964ff0efc06686e69ff8a776.tar.gz
Use the default colour instead if a bad colour specification is given.
Diffstat (limited to 'bin/ls/print.c')
-rw-r--r--bin/ls/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ls/print.c b/bin/ls/print.c
index d03a2fd..86cf445 100644
--- a/bin/ls/print.c
+++ b/bin/ls/print.c
@@ -500,7 +500,7 @@ char *cs;
fprintf(stderr,
"error: invalid character '%c' in LSCOLORS"
" env var\n", c[j]);
- colors[i].num[j] = defcolors[2*i+j]-'0';
+ colors[i].num[j] = -1;
}
}
}
OpenPOWER on IntegriCloud