summaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 7bf71b53..1c4c56c0 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -214,7 +214,11 @@ int main(int argc, char **argv) {
214 214
215 // Security: 215 // Security:
216 unsetenv("LD_PRELOAD"); 216 unsetenv("LD_PRELOAD");
217#ifdef _LD_LIBRARY_PATH
217 setenv("LD_LIBRARY_PATH", _LD_LIBRARY_PATH, 1); 218 setenv("LD_LIBRARY_PATH", _LD_LIBRARY_PATH, 1);
219#else
220 unsetenv("LD_LIBRARY_PATH");
221#endif
218 222
219 int c; 223 int c;
220 while (1) { 224 while (1) {