Changeset 10108 for trunk/gtk/tr-core.c


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-core.c

    r10101 r10108  
    811811doCollate( const char * in )
    812812{
    813     const char * end = in + strlen( in );
    814     char *       casefold;
    815     char *       ret;
     813    char * ret;
     814    char * casefold;
     815    const char * end = in ? in + strlen( in ) : NULL;
    816816
    817817    while( in < end )
Note: See TracChangeset for help on using the changeset viewer.