From 0be2203b11b109a04184c8050b1238ffe2d1afbf Mon Sep 17 00:00:00 2001 From: stoddard Date: Wed, 20 Oct 1999 17:31:12 +0000 Subject: Should be able to issue ap_put_os_file() with a NULL context provided struct file_t exists git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59386 13f79535-47bb-0310-9956-ffa450edef68 --- file_io/win32/open.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'file_io') diff --git a/file_io/win32/open.c b/file_io/win32/open.c index 5364e407b..9368591f3 100644 --- a/file_io/win32/open.c +++ b/file_io/win32/open.c @@ -180,10 +180,10 @@ ap_status_t ap_get_os_file(ap_os_file_t *thefile, struct file_t *file) 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; } -- cgit v1.2.1