diff options
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index d15a81af182..a500147e563 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -2448,9 +2448,11 @@ static int ignore_library (const char *); static int ignore_library (const char *name) { - const char *const *p = &aix_std_libs[0]; - while (*p++ != NULL) - if (! strcmp (name, *p)) return 1; + const char *const *p; + + for (p = &aix_std_libs[0]; *p != NULL; ++p) + if (strcmp (name, *p) == 0) + return 1; return 0; } #endif /* COLLECT_EXPORT_LIST */ |