aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2005-02-24 14:01:44 +0100
committerTobias Schlüter <tobi@gcc.gnu.org>2005-02-24 14:01:44 +0100
commitf5e9e99c8d49990706d1a1b80f5ea9e9db2a534a (patch)
treed95c3b91fb77172e12ce112a85f983bc25d726e9 /gcc/fortran/interface.c
parentc74636694956af8e2fe74bbeddf72891b9b5cfb1 (diff)
downloadgcc-f5e9e99c8d49990706d1a1b80f5ea9e9db2a534a.zip
gcc-f5e9e99c8d49990706d1a1b80f5ea9e9db2a534a.tar.gz
gcc-f5e9e99c8d49990706d1a1b80f5ea9e9db2a534a.tar.bz2
Revert yesterday's patch:
2005-02-23 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> * gfortran.h (gfc_component, gfc_actual_arglist, ... ... argument. Copy string instead of pointing to it. From-SVN: r95496
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r--gcc/fortran/interface.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index ecbf9a2..9f163d0 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -340,9 +340,8 @@ gfc_compare_types (gfc_typespec * ts1, gfc_typespec * ts2)
true names and module names are the same and the module name is
nonnull, then they are equal. */
if (strcmp (ts1->derived->name, ts2->derived->name) == 0
- && ((ts1->derived->module == NULL && ts2->derived->module == NULL)
- || (ts1->derived != NULL && ts2->derived != NULL
- && strcmp (ts1->derived->module, ts2->derived->module) == 0)))
+ && ts1->derived->module[0] != '\0'
+ && strcmp (ts1->derived->module, ts2->derived->module) == 0)
return 1;
/* Compare type via the rules of the standard. Both types must have
@@ -1166,7 +1165,7 @@ compare_actual_formal (gfc_actual_arglist ** ap,
for (a = actual; a; a = a->next, f = f->next)
{
- if (a->name != NULL)
+ if (a->name[0] != '\0')
{
i = 0;
for (f = formal; f; f = f->next, i++)