diff options
Diffstat (limited to 'source/aparser/parser.c')
-rw-r--r-- | source/aparser/parser.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/aparser/parser.c b/source/aparser/parser.c index 0c7153e1fb7..c2348b84f96 100644 --- a/source/aparser/parser.c +++ b/source/aparser/parser.c @@ -460,12 +460,8 @@ realloc some memory for a parse structure ********************************************************************/ BOOL io_realloc(char *name, io_struct *ps, void **ptr, unsigned size) { - BOOL ret = True; - void *tp; - - tp = (void *)Realloc(*ptr, size); - if (tp) *ptr = tp; - else ret = False; - return ret; + (*ptr) = (void *)Realloc(*ptr, size); + if (*ptr) return True; + return False; } |