From: Richard Basch Date: Mon, 1 Apr 1996 15:11:43 +0000 (+0000) Subject: Whitespace cleanup for readability X-Git-Tag: krb5-1.0-beta6~266 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=81fdcfce745159a1529d96a57a1e756d71b18f25;p=krb5.git Whitespace cleanup for readability git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7745 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index eae3ab584..c701850fa 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -1276,23 +1276,25 @@ if (ccache) } sprintf(path, "PATH=%s:%s", kprogdir, path_rest); envinit[PATHENV] = path; -/* If we have KRB5CCNAME set, then copy into the - * child's environment. This can't really have - * a fixed position because tz may or may not be set. - */ + + /* If we have KRB5CCNAME set, then copy into the + * child's environment. This can't really have + * a fixed position because tz may or may not be set. + */ if (getenv("KRB5CCNAME")) { int i; char *buf = (char *)malloc(strlen(getenv("KRB5CCNAME")) +strlen("KRB5CCNAME=")+1); - if (buf) { -sprintf(buf, "KRB5CCNAME=%s",getenv("KRB5CCNAME")); - -for (i = 0; envinit[i]; i++); -envinit[i] =buf; - } - /* If we do anything else, make sure there is space in the array. - */ + if (buf) { + sprintf(buf, "KRB5CCNAME=%s",getenv("KRB5CCNAME")); + + for (i = 0; envinit[i]; i++); + envinit[i] =buf; + } } + + /* XXX - If we do anything else, make sure there is space in the array. */ + environ = envinit; #ifdef KERBEROS