handle empty YAML's correctly (ticket #1127)

pull/13383/head
Vadim Pisarevsky 14 years ago
parent 3822128602
commit f6b3754f34
  1. 2
      modules/core/src/persistence.cpp

@ -1319,6 +1319,8 @@ icvYMLParse( CvFileStorage* fs )
CV_PARSE_ERROR( "The YAML streams must start with '---', except the first one" );
break;
}
else if( fs->dummy_eof )
break;
else
CV_PARSE_ERROR( "Invalid or unsupported syntax" );
}

Loading…
Cancel
Save