Commit 51e62707 authored by David Gobbi's avatar David Gobbi Committed by Code Review

Merge topic 'c-variable-decl' into master

12130b2c Before c99, variable decls go before other statements.
parents bd3daa1b 12130b2c
......@@ -122,8 +122,8 @@ static int read_option_file(
/* if buffer not long enough, increase it */
while (n == maxlen-1 && line[n-1] != '\n' && !feof(fp))
{
maxlen *= 2;
char *oldline = line;
maxlen *= 2;
line = (char *)realloc(line, maxlen);
if (!line)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment