fixed to bugs in optionsfrom.c

This commit is contained in:
Andreas Steffen 2007-09-18 20:35:28 +00:00
parent 3b4b26cdf3
commit 9b2cf1c66b
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,9 @@ static err_t parse_options_file(const char *filename, int *argcp, char **argvp[]
next = optind;
newargv[next] = NULL;
/* we keep the chunk pointer so that we can still free it */
src = chunk;
while (fetchline(&src, &line) && ugh == NULL)
{
while (eat_whitespace(&line))
@ -92,6 +95,7 @@ static err_t parse_options_file(const char *filename, int *argcp, char **argvp[]
{
/* last token in a line */
token = line;
line.len = 0;
}
}