Ignore:
Timestamp:
Feb 6, 2010, 5:21:25 AM (12 years ago)
Author:
charles
Message:

(trunk gtk) don't dereference a NULL pointer if a torrent has no "name"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-window.c

    r9916 r10108  
    390390
    391391        default: /* NAME */
    392             pch = g_utf8_casefold( inf->name, -1 );
    393             ret = !text || ( strstr( pch, text ) != NULL );
    394             g_free( pch );
     392            if( !inf->name )
     393                ret = TRUE;
     394            else {
     395                pch = g_utf8_casefold( inf->name, -1 );
     396                ret = !text || ( strstr( pch, text ) != NULL );
     397                g_free( pch );
     398            }
    395399            break;
    396400    }
Note: See TracChangeset for help on using the changeset viewer.