Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx> --- src/vbox/vbox_snapshot_conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vbox/vbox_snapshot_conf.c b/src/vbox/vbox_snapshot_conf.c index 6b47893b5e..90afac179e 100644 --- a/src/vbox/vbox_snapshot_conf.c +++ b/src/vbox/vbox_snapshot_conf.c @@ -454,7 +454,6 @@ virVBoxSnapshotConfAllChildren(virVBoxSnapshotConfHardDisk *disk, virVBoxSnapshotConfHardDisk ***list) { size_t returnSize = 0; - size_t tempSize = 0; virVBoxSnapshotConfHardDisk **ret = NULL; virVBoxSnapshotConfHardDisk **tempList = NULL; size_t i = 0; @@ -463,7 +462,7 @@ virVBoxSnapshotConfAllChildren(virVBoxSnapshotConfHardDisk *disk, ret = g_new0(virVBoxSnapshotConfHardDisk *, 0); for (i = 0; i < disk->nchildren; i++) { - tempSize = virVBoxSnapshotConfAllChildren(disk->children[i], &tempList); + size_t tempSize = virVBoxSnapshotConfAllChildren(disk->children[i], &tempList); VIR_EXPAND_N(ret, returnSize, tempSize); for (j = 0; j < tempSize; j++) -- 2.34.1