Browse Source

cmScore.c : Check that the score symbol table is valid at the beginning of cmScorePrintSets().

master
Kevin Larke 8 years ago
parent
commit
3a236648d3
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      app/cmScore.c

+ 3
- 0
app/cmScore.c View File

@@ -2443,6 +2443,9 @@ void cmScorePrintSets( cmScH_t h, cmRpt_t* rpt )
2443 2443
   cmSc_t*  p = _cmScHandleToPtr(h);
2444 2444
   unsigned i,j,k;
2445 2445
 
2446
+  // the score must have been opened with a valid symbol table
2447
+  assert( cmSymTblIsValid(p->stH) );
2448
+
2446 2449
 
2447 2450
   for(i=0,k=0; i<p->locCnt; ++i)
2448 2451
   {

Loading…
Cancel
Save