Bug 329728 Coverity doesn't like main in xpt_link because it pretends header could be null

r=mrbkap sr=bz
This commit is contained in:
timeless%mozdev.org 2006-03-10 00:01:45 +00:00
Родитель 29d9267216
Коммит b56efd6948
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -251,8 +251,7 @@ main(int argc, char **argv)
* equal to the version specified in the -t cmd line arg. * equal to the version specified in the -t cmd line arg.
*/ */
if (header && if ((header->major_version > major_version ||
(header->major_version > major_version ||
(header->major_version == major_version && (header->major_version == major_version &&
header->minor_version > minor_version))) { header->minor_version > minor_version))) {
fprintf(stderr, "FAILED: %s's version, %d.%d, is newer than " fprintf(stderr, "FAILED: %s's version, %d.%d, is newer than "