Changeset 11776


Ignore:
Timestamp:
Jan 27, 2011, 5:00:09 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) NULL ptr safeguard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r11748 r11776  
    423423    static size_t bufsize = 0;
    424424    static char * buf = NULL;
    425     const size_t  len = strlen( str );
     425    const size_t  len = str ? strlen( str ) : 0;
    426426    char *        out;
    427427
Note: See TracChangeset for help on using the changeset viewer.