X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flabel.c;h=efa52c31e06e8ed525f34ffc654eda955c435ff9;hb=a42ca0f2dfcdcde9e5aebccc3754e91a8206e1f9;hp=5650a1f4c2cbe6a97411281c33a8b220dd9e15fd;hpb=176a22fd90e39acf9b4bdae260d71b8d31be6db0;p=YACASL2.git 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) {