From b56efd6948eb892556038ab38171fa3e09587e71 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Fri, 10 Mar 2006 00:01:45 +0000 Subject: [PATCH] Bug 329728 Coverity doesn't like main in xpt_link because it pretends header could be null r=mrbkap sr=bz --- xpcom/typelib/xpt/tools/xpt_link.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xpcom/typelib/xpt/tools/xpt_link.c b/xpcom/typelib/xpt/tools/xpt_link.c index 1bd63021fdb4..0f40da824a20 100644 --- a/xpcom/typelib/xpt/tools/xpt_link.c +++ b/xpcom/typelib/xpt/tools/xpt_link.c @@ -251,8 +251,7 @@ main(int argc, char **argv) * equal to the version specified in the -t cmd line arg. */ - if (header && - (header->major_version > major_version || + if ((header->major_version > major_version || (header->major_version == major_version && header->minor_version > minor_version))) { fprintf(stderr, "FAILED: %s's version, %d.%d, is newer than "