mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-10 18:47:32 +00:00
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: Dwight Engen <dwight.engen@oracle.com> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
ef6e34eec8
commit
fca3080f6a
@ -871,7 +871,8 @@ out:
|
||||
count++;
|
||||
temp = realloc(addresses, count * sizeof(*addresses));
|
||||
if (!temp) {
|
||||
for (int i = 0; i < count-1; i++)
|
||||
int i;
|
||||
for (i = 0; i < count-1; i++)
|
||||
free(addresses[i]);
|
||||
free(addresses);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user