From 936247b01eb3e534b71920049308b08634b55900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 20 May 2005 07:50:56 +0000 Subject: [PATCH] (rk_read_env_file): move assignment to later to make pre c99 compiler happy git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15194 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/environment.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/roken/environment.c b/lib/roken/environment.c index 9572a90b9..2b5398807 100644 --- a/lib/roken/environment.c +++ b/lib/roken/environment.c @@ -66,13 +66,14 @@ static int rk_read_env_file(FILE *F, char ***env, int *assigned) { int index = 0; - *assigned = 0; int i; char **l; char buf[BUFSIZ], *p, *r; char **tmp; int ret = 0; + *assigned = 0; + for(index = 0; *env != NULL && (*env)[index] != NULL; index++); l = *env;