Commit 12130b2c authored by David Gobbi's avatar David Gobbi

Before c99, variable decls go before other statements.

Change-Id: I78f648252a63e3888d886e800a9d2eb6c02c4f0c
parent 9771254f
......@@ -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