From 4f5f5649dcd06bb5b670e6bd9d402d0568703f4a Mon Sep 17 00:00:00 2001 From: Garux Date: Sat, 13 Mar 2021 11:32:45 +0300 Subject: [PATCH] consider ability of _pico_parse() to return empty string (on trailing space w/o linefeed in this case) --- libs/picomodel/pm_obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/picomodel/pm_obj.c b/libs/picomodel/pm_obj.c index 2502435f..77eacc8b 100644 --- a/libs/picomodel/pm_obj.c +++ b/libs/picomodel/pm_obj.c @@ -727,7 +727,7 @@ static picoModel_t *_obj_load( PM_PARAMS_LOAD ){ /* get next vertex index string (different */ /* formats are handled below) */ str = _pico_parse( p,0 ); - if ( str == NULL ) { + if ( str == NULL || *str == '\0' ) { /* got nuff points */ if ( i >= 3 ) { break;