From b5e9e77c5cd1eaeea59c6398db1f24543c2aff25 Mon Sep 17 00:00:00 2001 From: sf Date: Tue, 27 Jul 2010 22:09:45 +0000 Subject: 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 --- file_io/netware/pipe.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'file_io/netware') 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; -- cgit v1.2.1