From: Michael Jeanson Date: Mon, 16 May 2016 22:48:54 +0000 (-0400) Subject: Fix: Use secure_getenv() in get_man_bin_path X-Git-Tag: v2.9.0-rc1~208 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b7dce40d330fdaf67a8db5d5941573ff812bbd77;p=lttng-tools.git Fix: Use secure_getenv() in get_man_bin_path Fixes coverity #1353462 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/utils.c b/src/common/utils.c index df55dc9fb..f75e7b006 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -1347,7 +1347,7 @@ end: static const char *get_man_bin_path(void) { - char *env_man_path = getenv(DEFAULT_MAN_BIN_PATH_ENV); + char *env_man_path = lttng_secure_getenv(DEFAULT_MAN_BIN_PATH_ENV); if (env_man_path) { return env_man_path;