(trunk libT) NULL ptr safeguard

This commit is contained in:
Jordan Lee 2011-01-27 05:00:09 +00:00
parent 5d15ee8439
commit 35515ee424
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ tr_strip_positional_args( const char* str )
const char * in = str;
static size_t bufsize = 0;
static char * buf = NULL;
const size_t len = strlen( str );
const size_t len = str ? strlen( str ) : 0;
char * out;
if( !buf || ( bufsize < len ) )