summaryrefslogtreecommitdiff
path: root/file_io/netware
diff options
context:
space:
mode:
authorsf <sf@13f79535-47bb-0310-9956-ffa450edef68>2010-07-27 22:09:45 +0000
committersf <sf@13f79535-47bb-0310-9956-ffa450edef68>2010-07-27 22:09:45 +0000
commitb5e9e77c5cd1eaeea59c6398db1f24543c2aff25 (patch)
tree1cb6ddc24a0845e85f254eec9056103e26b73d0b /file_io/netware
parent6eafa4d6e7416c27216357c24d238081b719186a (diff)
downloadlibapr-b5e9e77c5cd1eaeea59c6398db1f24543c2aff25.tar.gz
Fix various issues found by cppcheck
- error handling issues - use of uninitialized data - null pointer dereference - unused variables - memory/fd leaks - broken code in threadproc/beos/proc.c git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@979891 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/netware')
-rw-r--r--file_io/netware/pipe.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/file_io/netware/pipe.c b/file_io/netware/pipe.c
index 3e8f55935..f88f1e625 100644
--- a/file_io/netware/pipe.c
+++ b/file_io/netware/pipe.c
@@ -26,7 +26,6 @@
static apr_status_t pipeblock(apr_file_t *thepipe)
{
#ifdef USE_FLAGS
- int err;
unsigned long flags;
if (fcntl(thepipe->filedes, F_GETFL, &flags) != -1)
@@ -49,7 +48,6 @@ static apr_status_t pipeblock(apr_file_t *thepipe)
static apr_status_t pipenonblock(apr_file_t *thepipe)
{
#ifdef USE_FLAGS
- int err;
unsigned long flags;
errno = 0;
@@ -138,7 +136,6 @@ APR_DECLARE(apr_status_t) apr_os_pipe_put(apr_file_t **file,
APR_DECLARE(apr_status_t) apr_file_pipe_create(apr_file_t **in, apr_file_t **out, apr_pool_t *pool)
{
int filedes[2];
- int err;
if (pipe(filedes) == -1) {
return errno;