projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be7bf80
)
Fix warning in OSMem for darwin
author
Manuel M T Chakravarty
<chak@cse.unsw.edu.au>
Tue, 30 Oct 2007 13:30:03 +0000
(13:30 +0000)
committer
Manuel M T Chakravarty
<chak@cse.unsw.edu.au>
Tue, 30 Oct 2007 13:30:03 +0000
(13:30 +0000)
rts/posix/OSMem.c
patch
|
blob
|
history
diff --git
a/rts/posix/OSMem.c
b/rts/posix/OSMem.c
index
9e6e62b
..
9b71d1c
100644
(file)
--- a/
rts/posix/OSMem.c
+++ b/
rts/posix/OSMem.c
@@
-93,7
+93,7
@@
my_mmap (void *addr, lnat size)
// Let's just use the underlying Mach Microkernel calls directly,
// they're much nicer.
- kern_return_t err;
+ kern_return_t err = 0;
ret = addr;
if(addr) // try to allocate at adress
err = vm_allocate(mach_task_self(),(vm_address_t*) &ret, size, FALSE);