diff --git a/common/memsize.c b/common/memsize.c
index 963e4f35b18059c3d79b30c04ab595281c37273e..74cf075aff773aeeb2288c2db50899f10091b4ea 100644
--- a/common/memsize.c
+++ b/common/memsize.c
@@ -73,6 +73,7 @@ long get_ram_size(long *base, long maxsize)
 		}
 		return (0);
 	}
+	*addr = save[i];
 
 	for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
 		addr = base + cnt;	/* pointer arith! */