Fix warning in OSMem for darwin
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>
Tue, 30 Oct 2007 13:30:03 +0000 (13:30 +0000)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Tue, 30 Oct 2007 13:30:03 +0000 (13:30 +0000)
rts/posix/OSMem.c

index 9e6e62b..9b71d1c 100644 (file)
@@ -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);