diff options
author | markj <markj@FreeBSD.org> | 2015-03-31 02:49:05 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2015-03-31 02:49:05 +0000 |
commit | b940cb0c6bc38dd3f7a0bdeb7ca92810beaa2c71 (patch) | |
tree | f6862746f5ef83f453019d9c2bc1ccb256e4fc8c /cddl | |
parent | 2d3f9a1b0ba8b1a9856d090669d56fb9be167ad6 (diff) | |
download | FreeBSD-src-b940cb0c6bc38dd3f7a0bdeb7ca92810beaa2c71.zip FreeBSD-src-b940cb0c6bc38dd3f7a0bdeb7ca92810beaa2c71.tar.gz |
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
Diffstat (limited to 'cddl')
-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 da804ee..04c022b 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; |