mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 03:11:52 +01:00
Fix a misparenthesization that could cause a crash if TERM is not set.
Reported by: Coverity (internal) MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
2d3f9a1b0b
commit
b940cb0c6b
@ -727,8 +727,8 @@ dt_print_packed(dtrace_hdl_t *dtp, FILE *fp,
|
||||
utf8 = B_TRUE;
|
||||
} else if ((term = getenv("TERM")) != NULL &&
|
||||
(strcmp(term, "sun") == 0 ||
|
||||
strcmp(term, "sun-color") == 0) ||
|
||||
strcmp(term, "dumb") == 0) {
|
||||
strcmp(term, "sun-color") == 0 ||
|
||||
strcmp(term, "dumb") == 0)) {
|
||||
utf8 = B_FALSE;
|
||||
} else {
|
||||
utf8 = B_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user