projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move liblttng-ust-pthread-wrapper to 'src/lib/'
[lttng-ust.git]
/
src
/
common
/
getenv.c
diff --git
a/src/common/getenv.c
b/src/common/getenv.c
index 1909f4cf912bd8f80ebf51e6fc5dd88bb866607c..23029508b161d126590d8ed3bbcc943e0e23aa8c 100644
(file)
--- a/
src/common/getenv.c
+++ b/
src/common/getenv.c
@@
-64,8
+64,11
@@
char *lttng_ust_getenv(const char *name)
struct lttng_env *e;
bool found = false;
struct lttng_env *e;
bool found = false;
- if (!CMM_LOAD_SHARED(lttng_ust_getenv_is_init))
- abort();
+ /*
+ * Perform lazy initialization of lttng_ust_getenv for early use
+ * by library constructors.
+ */
+ lttng_ust_getenv_init();
for (i = 0; i < LTTNG_ARRAY_SIZE(lttng_env); i++) {
e = <tng_env[i];
for (i = 0; i < LTTNG_ARRAY_SIZE(lttng_env); i++) {
e = <tng_env[i];
This page took
0.023689 seconds
and
4
git commands to generate.