cppinit.c (merge_include_chains): Check for brack being NULL before attempting to merge it with qtail.

* cppinit.c (merge_include_chains): Check for brack being
	NULL before attempting to merge it with qtail.

From-SVN: r49814
This commit is contained in:
Zack Weinberg 2002-02-17 02:54:20 +00:00 committed by Zack Weinberg
parent d2af4dbdcc
commit afb58288e4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-02-16 Zack Weinberg <zack@codesourcery.com>
* cppinit.c (merge_include_chains): Check for brack being
NULL before attempting to merge it with qtail.
2002-02-16 Andrew Cagney <ac131313@redhat.com>
* config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to

View File

@ -376,7 +376,8 @@ merge_include_chains (pfile)
qtail->next = brack;
/* If brack == qtail, remove brack as it's simpler. */
if (INO_T_EQ (qtail->ino, brack->ino) && qtail->dev == brack->dev)
if (brack && INO_T_EQ (qtail->ino, brack->ino)
&& qtail->dev == brack->dev)
brack = remove_dup_dir (pfile, qtail);
}
else