Fix GrowAtomTable() on out-of-memory.

Issue=173 Signed-off-by: Daniel Koch Author: Benoit Jacob git-svn-id: https://angleproject.googlecode.com/svn/trunk@699 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 5bf210b2
#define MAJOR_VERSION 0 #define MAJOR_VERSION 0
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 698 #define BUILD_REVISION 699
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -335,7 +335,7 @@ static int GrowAtomTable(AtomTable *atable, int size) ...@@ -335,7 +335,7 @@ static int GrowAtomTable(AtomTable *atable, int size)
if (newmap) if (newmap)
atable->amap = newmap; atable->amap = newmap;
if (newrev) if (newrev)
atable->amap = newrev; atable->arev = newrev;
return -1; return -1;
} }
memset(&newmap[atable->size], 0, (size - atable->size) * sizeof(int)); memset(&newmap[atable->size], 0, (size - atable->size) * sizeof(int));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment