diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-09 09:30:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-09 09:32:40 +0100 |
commit | 0c88ebd66b0283ca770658cf1d5ee2b7b367c64a (patch) | |
tree | e52a07436754ea1ef98b993bc4ed440a995724b1 | |
parent | d0fecfb842d02fc027043e610bdf33f60ea109a2 (diff) |
build error
-rw-r--r-- | sal/rtl/source/alloc_arena.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sal/rtl/source/alloc_arena.c b/sal/rtl/source/alloc_arena.c index 571d6de7d1d0..5984f7525400 100644 --- a/sal/rtl/source/alloc_arena.c +++ b/sal/rtl/source/alloc_arena.c @@ -1001,10 +1001,12 @@ SAL_CALL rtl_arena_alloc ( if ((arena != 0) && (pSize != 0)) { + sal_Size size; + if (alloc_mode == AMode_SYSTEM) return rtl_allocateMemory(*pSize); - sal_Size size = RTL_MEMORY_ALIGN((*pSize), arena->m_quantum); + size = RTL_MEMORY_ALIGN((*pSize), arena->m_quantum); if (size > arena->m_qcache_max) { /* allocate from segment list */ |