summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/session.c b/session.c
index 747a00afa..19b22c2aa 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.142 2002/06/26 13:49:26 deraadt Exp $"); 36RCSID("$OpenBSD: session.c,v 1.143 2002/06/30 21:54:16 deraadt Exp $");
37 37
38#include "ssh.h" 38#include "ssh.h"
39#include "ssh1.h" 39#include "ssh1.h"
@@ -992,13 +992,13 @@ do_setup_env(Session *s, const char *shell)
992 if (!options.use_login) { 992 if (!options.use_login) {
993 while (custom_environment) { 993 while (custom_environment) {
994 struct envstring *ce = custom_environment; 994 struct envstring *ce = custom_environment;
995 char *s = ce->s; 995 char *str = ce->s;
996 996
997 for (i = 0; s[i] != '=' && s[i]; i++) 997 for (i = 0; str[i] != '=' && str[i]; i++)
998 ; 998 ;
999 if (s[i] == '=') { 999 if (str[i] == '=') {
1000 s[i] = 0; 1000 str[i] = 0;
1001 child_set_env(&env, &envsize, s, s + i + 1); 1001 child_set_env(&env, &envsize, str, str + i + 1);
1002 } 1002 }
1003 custom_environment = ce->next; 1003 custom_environment = ce->next;
1004 xfree(ce->s); 1004 xfree(ce->s);