(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
This commit is contained in:
@@ -66,13 +66,14 @@ static int
|
|||||||
rk_read_env_file(FILE *F, char ***env, int *assigned)
|
rk_read_env_file(FILE *F, char ***env, int *assigned)
|
||||||
{
|
{
|
||||||
int index = 0;
|
int index = 0;
|
||||||
*assigned = 0;
|
|
||||||
int i;
|
int i;
|
||||||
char **l;
|
char **l;
|
||||||
char buf[BUFSIZ], *p, *r;
|
char buf[BUFSIZ], *p, *r;
|
||||||
char **tmp;
|
char **tmp;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
*assigned = 0;
|
||||||
|
|
||||||
for(index = 0; *env != NULL && (*env)[index] != NULL; index++);
|
for(index = 0; *env != NULL && (*env)[index] != NULL; index++);
|
||||||
l = *env;
|
l = *env;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user