stoddard 99/10/20 10:31:13
Modified: src/lib/apr/file_io/win32 open.c
Log:
Should be able to issue ap_put_os_file() with a NULL context provided struct
file_t exists
Revision Changes Path
1.8 +3 -3 apache-2.0/src/lib/apr/file_io/win32/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/open.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- open.c 1999/10/18 21:59:29 1.7
+++ open.c 1999/10/20 17:31:12 1.8
@@ -180,10 +180,10 @@
ap_status_t ap_put_os_file(struct file_t **file, ap_os_file_t *thefile,
ap_context_t *cont)
{
- if (cont == NULL) {
- return APR_ENOCONT;
- }
if ((*file) == NULL) {
+ if (cont == NULL) {
+ return APR_ENOCONT;
+ }
(*file) = (struct file_t *)ap_palloc(cont, sizeof(struct file_t));
(*file)->cntxt = cont;
}