fix: check arch for null before appending.
authorjbj <devnull@localhost>
Tue, 21 Jan 2003 00:59:36 +0000 (00:59 +0000)
committerjbj <devnull@localhost>
Tue, 21 Jan 2003 00:59:36 +0000 (00:59 +0000)
CVS patchset: 6019
CVS date: 2003/01/21 00:59:36

lib/query.c

index 95daa7f..0297722 100644 (file)
@@ -147,7 +147,7 @@ int showQueryPackage(QVA_t qva, rpmts ts, Header h)
        te = stpcpy(te, n);
        te = stpcpy( stpcpy(te, "-"), v);
        te = stpcpy( stpcpy(te, "-"), r);
-       if (tscolor)
+       if (tscolor && a != NULL)
            te = stpcpy( stpcpy(te, "."), a);
 /*@=boundswrite@*/
        goto exit;