Changeset b7cd22d


Ignore:
Timestamp:
2014-09-27T14:54:35Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
f75b3a7
Parents:
0406d6a6
Message:

ssl_gnutls: Fix some uninitialized memory warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_gnutls.c

    r0406d6a6 rb7cd22d  
    236236static void ssl_cache_add( struct scd *conn )
    237237{
    238         size_t data_size;
     238        size_t data_size = 0;
    239239        struct ssl_session *data;
    240240        char *hostname;
     
    245245       
    246246        data = g_malloc( sizeof( struct ssl_session ) + data_size );
    247         if( gnutls_session_get_data( conn->session, data->data, &data->size ) != 0 )
     247        if( gnutls_session_get_data( conn->session, data->data, &data_size ) != 0 )
    248248        {
    249249                g_free( data );
Note: See TracChangeset for help on using the changeset viewer.