ラベルが空のとき、変数にNULLではなく'\0'を設定するよう変更
[YACASL2.git] / src / label.c
index 5650a1f..efa52c3 100644 (file)
@@ -59,7 +59,7 @@ unsigned labelhash(const char *prog, const char *label)
  */
 WORD getlabel(const char *prog, const char *label)
 {
-    assert(label != NULL);
+    assert(prog != NULL && label != NULL);
     LABELTAB *p;
 
     for(p = labels[labelhash(prog, label)]; p != NULL; p = p->next) {