module.c (read_module): Remove useless string duplication.

2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

	* module.c (read_module): Remove useless string duplication.

From-SVN: r165028
This commit is contained in:
Mikael Morin 2010-10-06 14:19:30 +00:00
parent 476bed6606
commit 3e212b5d2b
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* module.c (read_module): Remove useless string duplication.
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* gfortranspec.c (append_arg): Remove commented code.

View File

@ -4372,8 +4372,8 @@ read_module (void)
p = name;
/* Exception: Always import vtabs & vtypes. */
if (p == NULL && (strcmp (xstrndup (name,5), "vtab$") == 0
|| strcmp (xstrndup (name,6), "vtype$") == 0))
if (p == NULL && (strncmp (name, "vtab$", 5) == 0
|| strncmp (name, "vtype$", 6) == 0))
p = name;
/* Skip symtree nodes not in an ONLY clause, unless there