Add parenthesis to make gcc happy
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 8 Aug 2008 10:53:57 +0000 (13:53 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 8 Aug 2008 10:53:57 +0000 (13:53 +0300)
build/spec.c

index 58e8908..b8bdb33 100644 (file)
@@ -302,8 +302,8 @@ int addSource(rpmSpec spec, Package pkg, const char *field, rpmTag tag)
     /* Check whether tags of the same number haven't already been defined */
     for (p = spec->sources; p != NULL; p = p->next) {
        if ( p->num != num ) continue;
-       if (tag == RPMTAG_SOURCE && p->flags == RPMBUILD_ISSOURCE ||
-           tag == RPMTAG_PATCH  && p->flags == RPMBUILD_ISPATCH) {
+       if ((tag == RPMTAG_SOURCE && p->flags == RPMBUILD_ISSOURCE) ||
+           (tag == RPMTAG_PATCH  && p->flags == RPMBUILD_ISPATCH)) {
                rpmlog(RPMLOG_ERR, _("%s %d defined multiple times\n"), name, num);
                return RPMRC_FAIL;
            }