X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=src%2Flabel.c;h=d740b2e368f2a69eb4771ef4f3c6a2b8d016014a;hp=b58def55e0f328319e5efb671b8f1d48ba074715;hb=555e213c3a100db431fec78cbba6dfed8e541e2a;hpb=17d01b5658f2cdad6839ab55d27cf1ed4824309b 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;