summaryrefslogtreecommitdiff
path: root/src/psaux/psstack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/psaux/psstack.c')
-rw-r--r--src/psaux/psstack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/psaux/psstack.c b/src/psaux/psstack.c
index bebbba218..7ae5256ef 100644
--- a/src/psaux/psstack.c
+++ b/src/psaux/psstack.c
@@ -59,12 +59,12 @@
CF2_Stack stack = NULL;
- if ( !FT_NEW( stack ) )
- {
- /* initialize the structure; FT_NEW zeroes it */
- stack->memory = memory;
- stack->error = e;
- }
+ if ( FT_NEW( stack ) )
+ return NULL;
+
+ /* initialize the structure; FT_NEW zeroes it */
+ stack->memory = memory;
+ stack->error = e;
/* allocate the stack buffer */
if ( FT_NEW_ARRAY( stack->buffer, stackSize ) )