Use the default colour instead if a bad colour specification is given.

This commit is contained in:
Josef Karthauser 2001-12-28 18:20:23 +00:00
parent c1499cf6cf
commit 0d72516e58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88584

View File

@ -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;
}
}
}