Skip to content
Snippets Groups Projects
Commit c3ec466a authored by wlott's avatar wlott
Browse files

Fixed os_validate to actually return 0 when it couldn't allocate the

memory.
parent a6bbd49d
No related branches found
No related tags found
No related merge requests found
/* /*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/mach-os.c,v 1.4 1992/03/02 04:10:36 wlott Exp $ * $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/mach-os.c,v 1.5 1992/04/08 03:25:15 wlott Exp $
* *
* OS-dependent routines. This file (along with os.h) exports an * OS-dependent routines. This file (along with os.h) exports an
* OS-independent interface to the operating system VM facilities. * OS-independent interface to the operating system VM facilities.
...@@ -45,7 +45,7 @@ vm_size_t len; ...@@ -45,7 +45,7 @@ vm_size_t len;
#endif #endif
if (res != KERN_SUCCESS) if (res != KERN_SUCCESS)
mach_error("Could not vm_allocate memory: ", res); return 0;
segments = -1; segments = -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment