Commit fca3080f by Dwight Engen Committed by Stéphane Graber

fix minor gcc 4.7.2 error

lxccontainer.c:874:4: error: ‘for’ loop initial declarations are only allowed in C99 mode Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent ef6e34ee
...@@ -871,7 +871,8 @@ out: ...@@ -871,7 +871,8 @@ out:
count++; count++;
temp = realloc(addresses, count * sizeof(*addresses)); temp = realloc(addresses, count * sizeof(*addresses));
if (!temp) { if (!temp) {
for (int i = 0; i < count-1; i++) int i;
for (i = 0; i < count-1; i++)
free(addresses[i]); free(addresses[i]);
free(addresses); free(addresses);
return NULL; return NULL;
......
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