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 "