Changeset 1751


Ignore:
Timestamp:
Apr 18, 2007, 4:41:37 PM (15 years ago)
Author:
joshe
Message:

Don't use uninitialized variables.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/client.c

    r1736 r1751  
    877877    assert( IPC_MSG_INFO == msgid );
    878878
    879     if( TYPE_LIST != list->type || NULL == resp->infocb )
     879    if( TYPE_LIST != list->type )
    880880    {
    881881        return;
     
    885885    key.tag = tag;
    886886    resp = RB_FIND( resptree, &gl_resps, &key );
    887     if( NULL == resp )
     887    if( NULL == resp || NULL == resp->infocb )
    888888    {
    889889        return;
     
    929929    assert( IPC_MSG_STAT == msgid );
    930930
    931     if( TYPE_LIST != list->type || NULL == resp->statcb )
     931    if( TYPE_LIST != list->type )
    932932    {
    933933        return;
     
    937937    key.tag = tag;
    938938    resp = RB_FIND( resptree, &gl_resps, &key );
    939     if( NULL == resp )
     939    if( NULL == resp || NULL == resp->statcb )
    940940    {
    941941        return;
  • trunk/libtransmission/bencode.c

    r1719 r1751  
    292292    va_list      ap;
    293293
     294    ret = NULL;
    294295    va_start( ap, val );
    295296    while( ( key = va_arg( ap, const char * ) ) )
Note: See TracChangeset for help on using the changeset viewer.