瀏覽代碼

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

master
Kevin Larke 8 年之前
父節點
當前提交
3a236648d3
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      app/cmScore.c

+ 3
- 0
app/cmScore.c 查看文件

@@ -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…
取消
儲存