X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fconfig.c;h=ece7cdb2a0e161339f661cfa1bd8b6cb37fc7138;hp=86b1be8b5c41c218cc2f6252188410e2ce2a741e;hb=e8fa9fb0539ec3d734f6d0ab91220b4538b2ea30;hpb=d07ceecd2f35ccf383c7529a18dcc9b9c4b8cb17 diff --git a/src/common/config/config.c b/src/common/config/config.c index 86b1be8b5..ece7cdb2a 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -595,7 +596,7 @@ static char *get_session_config_xsd_path() { char *xsd_path; - const char *base_path = getenv(DEFAULT_SESSION_CONFIG_XSD_PATH_ENV); + const char *base_path = lttng_secure_getenv(DEFAULT_SESSION_CONFIG_XSD_PATH_ENV); size_t base_path_len; size_t max_path_len;