diff options
author | ake <ake@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-15 16:53:30 +0000 |
---|---|---|
committer | ake <ake@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-15 16:53:30 +0000 |
commit | 78c1cc3b75f019b1ddf4ce5d97ff11a9fd61eb89 (patch) | |
tree | 27b6a77dd97946db1f35cc111ea80964b05b32ee /file_io | |
parent | 021e93a3b069fb60eb513ec1f102570e15cbf024 (diff) | |
download | libapr-78c1cc3b75f019b1ddf4ce5d97ff11a9fd61eb89.tar.gz |
Fix memory corruption & return value for Win32
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59711 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r-- | file_io/win32/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/file_io/win32/open.c b/file_io/win32/open.c index 1f80a6b54..5c26ccb44 100644 --- a/file_io/win32/open.c +++ b/file_io/win32/open.c @@ -214,12 +214,12 @@ ap_status_t ap_eof(ap_file_t *fptr) if (fptr->eof_hit == 1) { return APR_EOF; } - APR_SUCCESS; + return APR_SUCCESS; } ap_status_t ap_open_stderr(struct file_t **thefile, ap_context_t *cont) { - (*thefile) = ap_pcalloc(cont, sizeof(struct file_t *)); + (*thefile) = ap_pcalloc(cont, sizeof(struct file_t)); if ((*thefile) == NULL) { return APR_ENOMEM; } |