X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Fdstream.cc;h=6cfc62eb3ded390c3a96555f3a1a9f36e4a6f4ac;hb=cd6fbd39e456ab3ff353c38fc5ae1997e61390f2;hp=8540e734cffd29c1ee144b7162d72dc4af405111;hpb=fc22f69328fd2d5030bb1feff8d0f6da37e8217d;p=lilypond.git diff --git a/flower/dstream.cc b/flower/dstream.cc index 8540e734cf..6cfc62eb3d 100644 --- a/flower/dstream.cc +++ b/flower/dstream.cc @@ -114,7 +114,10 @@ Dstream::Dstream(ostream *r, const char * cfg_nm ) Text_db cfg(fn); while (! cfg.eof()){ Text_record r( cfg++); - assert(r.sz() == 2); + if (r.sz() != 2) { + r.message("not enough fields in Dstream init."); + continue; + } (*silent)[r[0]] = r[1].to_bool(); }