aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_info.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-07-06 20:12:28 +0200
committerSverker Eriksson <[email protected]>2018-07-10 14:10:25 +0200
commit7603a4fb82f72a72045eed26dd55de3067cfe344 (patch)
tree5dbbd3aa5e0e97a2484ad125508e80d33561c3da /erts/emulator/beam/erl_bif_info.c
parent4100c0cb4d391693fdb08d8565c937bb399fda3a (diff)
downloadotp-7603a4fb82f72a72045eed26dd55de3067cfe344.tar.gz
otp-7603a4fb82f72a72045eed26dd55de3067cfe344.tar.bz2
otp-7603a4fb82f72a72045eed26dd55de3067cfe344.zip
erts: Fix buggy calls to erts_sys_explicit_8bit_getenv
Two of them only affect valgrind builds and the one for ERL_CRASH_DUMP_NICE seems benign. Return value changed in c2d70945dce9cb09d5d7120d6e9ddf7faac8d230 old -> new -1 -> 0 not found 0 -> 1 found ok 1 -> -1 found but too big
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r--erts/emulator/beam/erl_bif_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index 5789fa8e71..39442e52c6 100644
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -2098,7 +2098,7 @@ static int check_if_xml(void)
{
char buf[1];
size_t bufsz = sizeof(buf);
- return erts_sys_explicit_8bit_getenv("VALGRIND_LOG_XML", buf, &bufsz) >= 0;
+ return erts_sys_explicit_8bit_getenv("VALGRIND_LOG_XML", buf, &bufsz) != 0;
}
#else
#define check_if_xml() 0