summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c
index d70083a3..ef6c2b69 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -224,7 +224,7 @@ load_section (void *section, struct execdata *u)
if (! u->error && off != 0)
{
vm_address_t page = 0;
- page = (vm_address_t) mmap (0, vm_page_size,
+ page = (vm_address_t) mmap (0, vm_page_size,
PROT_READ|PROT_WRITE, MAP_ANON,
0, 0);
u->error = (page == -1) ? errno : 0;
@@ -325,6 +325,7 @@ load_section (void *section, struct execdata *u)
PROT_READ|PROT_WRITE,
MAP_ANON, 0, 0);
u->error = (ourpage == -1) ? errno : 0;
+ }
}
if (u->error)
{