From: Eric Andersen Date: Thu, 22 Feb 2001 00:50:20 +0000 (-0000) Subject: Revert my change to do extra termType checking. That is done elsewhere. X-Git-Tag: 0_50~183 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8fc300976f5a06d98f8be3e1798b5bc8da868e02;p=oweals%2Fbusybox.git Revert my change to do extra termType checking. That is done elsewhere. Silly me. -Erik --- diff --git a/init.c b/init.c index 4c05c38e3..55a81d309 100644 --- a/init.c +++ b/init.c @@ -420,9 +420,6 @@ static pid_t run(char *command, char *terminal, int get_enter) while ((environ[j]) && (i < MAXENV)) { if (strncmp(environ[j], "TERM=", 5)) environment[i++] = environ[j]; - else { - snprintf(termType, sizeof(termType) - 1, environ[j]); - } j++; } diff --git a/init/init.c b/init/init.c index 4c05c38e3..55a81d309 100644 --- a/init/init.c +++ b/init/init.c @@ -420,9 +420,6 @@ static pid_t run(char *command, char *terminal, int get_enter) while ((environ[j]) && (i < MAXENV)) { if (strncmp(environ[j], "TERM=", 5)) environment[i++] = environ[j]; - else { - snprintf(termType, sizeof(termType) - 1, environ[j]); - } j++; }