X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flabel.c;h=d740b2e368f2a69eb4771ef4f3c6a2b8d016014a;hb=62a189b4cdc7045922b132d5ff3371da948f2dbe;hp=b58def55e0f328319e5efb671b8f1d48ba074715;hpb=fda1563ea37180835e0b9c6e7a9c7ae607895446;p=YACASL2.git diff --git a/src/label.c b/src/label.c index b58def5..d740b2e 100644 --- a/src/label.c +++ b/src/label.c @@ -25,8 +25,7 @@ WORD getlabel(const char *prog, const char *label) { LABELTAB *np; for(np = labels[labelhash(prog, label)]; np != NULL; np = np->next) { - if(((prog == NULL && np->prog == NULL) || - (prog != NULL && np->prog != NULL && strcmp(prog, np->prog) == 0)) && + if((prog == NULL || (np->prog != NULL && strcmp(prog, np->prog) == 0)) && strcmp(label, np->label) == 0) { return np->adr;