Changeset d8c4d75 in mod_gnutls


Ignore:
Timestamp:
Oct 11, 2020, 10:19:43 AM (10 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio
Children:
d54572e
Parents:
8da0c7e
Message:

Remove redundant initializations

Found by CppCheck?.

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_proxy.c

    r8da0c7e rd8c4d75  
    133133        return APR_EGENERAL;
    134134
    135     apr_status_t ret = APR_EINIT;
    136     int err = GNUTLS_E_SUCCESS;
    137 
    138135    /* Cleanup function for the GnuTLS structures allocated below */
    139136    apr_pool_cleanup_register(pconf, sc, cleanup_proxy_x509_credentials,
     
    142139    /* Function pool, gets destroyed before exit. */
    143140    apr_pool_t *pool;
    144     ret = apr_pool_create(&pool, ptemp);
     141    apr_status_t ret = apr_pool_create(&pool, ptemp);
    145142    if (ret != APR_SUCCESS)
    146143    {
     
    151148
    152149    /* allocate credentials structures */
    153     err = gnutls_certificate_allocate_credentials(&sc->proxy_x509_creds);
     150    int err = gnutls_certificate_allocate_credentials(&sc->proxy_x509_creds);
    154151    if (err != GNUTLS_E_SUCCESS)
    155152    {
  • src/gnutls_util.c

    r8da0c7e rd8c4d75  
    100100                             gnutls_datum_t *datum)
    101101{
    102     apr_status_t rv = APR_EINIT;
    103102    apr_file_t *file;
    104103    apr_finfo_t finfo;
    105104    apr_size_t br = 0;
    106     rv = apr_file_open(&file, filename,
    107                        APR_READ | APR_BINARY, APR_OS_DEFAULT, p);
     105
     106    apr_status_t rv = apr_file_open(&file, filename,
     107                                    APR_READ | APR_BINARY, APR_OS_DEFAULT, p);
    108108    if (rv != APR_SUCCESS)
    109109        return rv;
Note: See TracChangeset for help on using the changeset viewer.