From 424faadc463376dfe681ab225e24cbb30791ba7d Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 7 Jun 2017 21:30:07 +0200 Subject: [PATCH] Build fix --- indra/llcommon/llsdserialize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llsdserialize.cpp b/indra/llcommon/llsdserialize.cpp index 564df3ab37..425f8b8c17 100644 --- a/indra/llcommon/llsdserialize.cpp +++ b/indra/llcommon/llsdserialize.cpp @@ -2319,10 +2319,10 @@ U8* unzip_llsdNavMesh( bool& valid, unsigned int& outsize, std::istream& is, S32 U32 have = CHUNK-strm.avail_out; - result = (U8*) realloc(result, cur_size + have); + //result = (U8*) realloc(result, cur_size + have); //if (result == NULL) //{ - //U8* pNew = (U8*) realloc(result, cur_size + have); + U8* pNew = (U8*) realloc(result, cur_size + have); if (pNew == NULL) { LL_WARNS() << "Failed to unzip LLSD NavMesh block: can't reallocate memory, current size: " << cur_size << " bytes; requested " << cur_size + have << " bytes." << LL_ENDL;