apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1836235 - /apr/apr/trunk/test/sockperf.c
Date Wed, 18 Jul 2018 21:17:43 GMT
Author: minfrin
Date: Wed Jul 18 21:17:43 2018
New Revision: 1836235

URL: http://svn.apache.org/viewvc?rev=1836235&view=rev
Log:
Make sure rv is not used uninitialised.

Modified:
    apr/apr/trunk/test/sockperf.c

Modified: apr/apr/trunk/test/sockperf.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/sockperf.c?rev=1836235&r1=1836234&r2=1836235&view=diff
==============================================================================
--- apr/apr/trunk/test/sockperf.c (original)
+++ apr/apr/trunk/test/sockperf.c Wed Jul 18 21:17:43 2018
@@ -183,7 +183,7 @@ static apr_status_t runTest(struct testS
                             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;
     



Mime
View raw message