Changeset f567b195a4322e6a7b66674f0bb6eec70af03dbc

Show
Ignore:
Timestamp:
04/30/07 17:04:47 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1177945487 +0000
git-parent:

[92a4720a62666e8bfdcc565e802c6fdaf0e70980]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1177945487 +0000
Message:

Handle errors without crashing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/text/strings.c

    rd291085 rf567b19  
    6464{ 
    6565    unsigned char *in = (unsigned char *)psz, *out = in, c; 
     66    if( psz == NULL ) 
     67        return; 
    6668 
    6769    while( ( c = *in++ ) != '\0' ) 
     
    145147{ 
    146148    unsigned char *in = (unsigned char *)psz, *out = in, c; 
     149    if( psz == NULL ) 
     150        return; 
    147151 
    148152    while( ( c = *in++ ) != '\0' )