summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2018-01-06 13:01:42 +0100
committerJean Guyomarc'h <jean@guyomarch.bzh>2018-01-06 13:01:42 +0100
commit0b17e79d0fd079343bd41588c042c620f220dcfa (patch)
tree4156daffd7a743262cec7ad04640bf9d0a70a3e3
parenteb6afc9daa4bd4bc1afdd9f6baf3aee12daf1eb3 (diff)
main: simplify use of setenv()
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 0071246..a889ca2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -115,9 +115,7 @@ main_plugins_get(void)
115static void __attribute__((constructor)) 115static void __attribute__((constructor))
116__constructor(void) 116__constructor(void)
117{ 117{
118 const char bt_env[] = "EINA_LOG_BACKTRACE"; 118 setenv("EINA_LOG_BACKTRACE", "-1", 0);
119 if (! getenv(bt_env))
120 setenv(bt_env, "-1", 1);
121} 119}
122 120
123EAPI_MAIN int elm_main(int argc, char **argv); 121EAPI_MAIN int elm_main(int argc, char **argv);