Commit afeea15c authored by David Gobbi's avatar David Gobbi

Before c99, variable decls go before other statements.

Change-Id: I314daa01a72d6566076db8191d173db84cab3bf7
parent 12130b2c
......@@ -633,8 +633,8 @@ static char **vtkWrapHierarchy_ReadHierarchyFile(FILE *fp, char **lines)
/* 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)
{
......@@ -712,8 +712,8 @@ static int vtkWrapHierarchy_CompareHierarchyFile(FILE *fp, char *lines[])
/* 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