summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>2018-08-25 13:40:26 +0000
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>2018-08-25 13:40:26 +0000
commitbad96b3335e2150c3844e6f073f3d0d4e8816de9 (patch)
tree626ed84c968e24c6b82016879345ce0d6c7bd763
parent9e558a1cfc4ca7bfa53e5744348a84d0516a7551 (diff)
downloadlibapr-bad96b3335e2150c3844e6f073f3d0d4e8816de9.tar.gz
Make sure rv is not used uninitialised.
Backport of r1836235 from trunk resp. r1836236 from 1.7.x. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1839053 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/sockperf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sockperf.c b/test/sockperf.c
index a18d8ba3f..28368efbc 100644
--- a/test/sockperf.c
+++ b/test/sockperf.c
@@ -183,7 +183,7 @@ static apr_status_t runTest(struct testSet *ts, struct testResult *res,
apr_pool_t *pool)
{
char *buffer;
- apr_status_t rv;
+ apr_status_t rv = APR_SUCCESS;
int i;
apr_size_t sz = ts->size * TEST_SIZE;