You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jw...@apache.org on 2003/07/14 02:38:18 UTC
cvs commit: apr/mmap/unix mmap.c
jwoolley 2003/07/13 17:38:17
Modified: mmap/unix mmap.c
Log:
it's confusing as hell to get an allocated object back that's all zeros.
yeah, yeah, we returned something other than APR_SUCCESS, but still.
anyway, the win32 implementation already does this, so now we're consistent.
Submitted by: Sander, Branko, Cliff
Revision Changes Path
1.50 +2 -0 apr/mmap/unix/mmap.c
Index: mmap.c
===================================================================
RCS file: /home/cvs/apr/mmap/unix/mmap.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -u -r1.49 -r1.50
--- mmap.c 10 Mar 2003 19:02:38 -0000 1.49
+++ mmap.c 14 Jul 2003 00:38:17 -0000 1.50
@@ -143,6 +143,7 @@
if (aid < B_NO_ERROR) {
/* we failed to get an area we can use... */
+ *new = NULL;
return APR_ENOMEM;
}
@@ -163,6 +164,7 @@
if (mm == (void *)-1) {
/* we failed to get an mmap'd file... */
+ *new = NULL;
return errno;
}
#endif