consider ability of _pico_parse() to return empty string (on trailing space w/o linefeed in this case)
This commit is contained in:
parent
c7fedadcd1
commit
4f5f5649dc
|
|
@ -727,7 +727,7 @@ static picoModel_t *_obj_load( PM_PARAMS_LOAD ){
|
||||||
/* get next vertex index string (different */
|
/* get next vertex index string (different */
|
||||||
/* formats are handled below) */
|
/* formats are handled below) */
|
||||||
str = _pico_parse( p,0 );
|
str = _pico_parse( p,0 );
|
||||||
if ( str == NULL ) {
|
if ( str == NULL || *str == '\0' ) {
|
||||||
/* got nuff points */
|
/* got nuff points */
|
||||||
if ( i >= 3 ) {
|
if ( i >= 3 ) {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user