Mercurial > emacs
changeset 62406:788686743e76
(unexec_realloc): Move declarations before statements.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Mon, 16 May 2005 15:16:40 +0000 |
parents | 39bedd779f48 |
children | 0e8b9e2e0990 |
files | src/unexmacosx.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/unexmacosx.c Mon May 16 12:00:10 2005 +0000 +++ b/src/unexmacosx.c Mon May 16 15:16:40 2005 +0000 @@ -1,5 +1,5 @@ /* Dump Emacs in Mach-O format for use on Mac OS X. - Copyright (C) 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -1069,10 +1069,10 @@ if (ptr_in_unexec_regions (old_ptr)) { - p = (size_t *) malloc (new_size); size_t old_size = ((unexec_malloc_header_t *) old_ptr)[-1].u.size; size_t size = new_size > old_size ? old_size : new_size; + p = (size_t *) malloc (new_size); if (size) memcpy (p, old_ptr, size); }