aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gos/gos_x_heap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gos/gos_x_heap.c b/src/gos/gos_x_heap.c
index 94b74d37..e8faa02f 100644
--- a/src/gos/gos_x_heap.c
+++ b/src/gos/gos_x_heap.c
@@ -154,7 +154,8 @@
}
// We need to do this the hard way
- if ((new = gfxAlloc(sz)))
+ new = gfxAlloc(sz);
+ if (new)
return 0;
memcpy(new, ptr, p->sz - sizeof(memslot));
gfxFree(ptr);