X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Flabel.c;h=efa52c31e06e8ed525f34ffc654eda955c435ff9;hp=5650a1f4c2cbe6a97411281c33a8b220dd9e15fd;hb=9a48fd93fe01972f0de42c6349e2e8a8160ec5df;hpb=f8636262f5c60efbb9d1c608e2276d359bc348a0 diff --git a/src/label.c b/src/label.c index 5650a1f..efa52c3 100644 --- a/src/label.c +++ b/src/label.c @@ -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) {