You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mi...@apache.org on 2018/07/18 21:17:43 UTC

svn commit: r1836235 - /apr/apr/trunk/test/sockperf.c

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;