From bd9fdc1849dcf38cb326f09684544a9df8af1578 Mon Sep 17 00:00:00 2001 From: philsmd Date: Wed, 15 Feb 2017 14:32:24 +0100 Subject: [PATCH] use putenv () with the COMPUTE environment as it was before --- src/shared.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/shared.c b/src/shared.c index f6d4bbfa2..cadd86beb 100644 --- a/src/shared.c +++ b/src/shared.c @@ -260,19 +260,7 @@ void setup_environment_variables () snprintf (display, sizeof (display) - 1, "DISPLAY=%s", compute); - // we only use this check to avoid "tainted string" warnings - - u32 display_len_max = sizeof (display); - - u32 display_len = strnlen (display, display_len_max); - - if (display_len > 0) // should be always true - { - if (display_len < display_len_max) // some upper bound is always good - { - putenv (display); - } - } + putenv (display); } else {