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
6e8e6c9951
commit
28cb2a5f4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280882
@ -727,8 +727,8 @@ dt_print_packed(dtrace_hdl_t *dtp, FILE *fp,
|
|||||||
utf8 = B_TRUE;
|
utf8 = B_TRUE;
|
||||||
} else if ((term = getenv("TERM")) != NULL &&
|
} else if ((term = getenv("TERM")) != NULL &&
|
||||||
(strcmp(term, "sun") == 0 ||
|
(strcmp(term, "sun") == 0 ||
|
||||||
strcmp(term, "sun-color") == 0) ||
|
strcmp(term, "sun-color") == 0 ||
|
||||||
strcmp(term, "dumb") == 0) {
|
strcmp(term, "dumb") == 0)) {
|
||||||
utf8 = B_FALSE;
|
utf8 = B_FALSE;
|
||||||
} else {
|
} else {
|
||||||
utf8 = B_TRUE;
|
utf8 = B_TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user