diff options
author | markj <markj@FreeBSD.org> | 2015-04-12 21:38:18 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2015-04-12 21:38:18 +0000 |
commit | d81fd232dc7100ab8e848966036898b6c368b673 (patch) | |
tree | 010615969279859afac8f8bd28d39e27087e1411 /cddl/contrib/opensolaris | |
parent | 6a076d8809e779df6f22552edc05e74ae89eac66 (diff) | |
download | FreeBSD-src-d81fd232dc7100ab8e848966036898b6c368b673.zip FreeBSD-src-d81fd232dc7100ab8e848966036898b6c368b673.tar.gz |
MFC r280882:
Fix a misparenthesization that could cause a crash if TERM is not set.
Diffstat (limited to 'cddl/contrib/opensolaris')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c index ec5839a..2ed50c6 100644 --- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c +++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c @@ -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; |