diff options
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/stabs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c index 1e78c0d..2b52416 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -1129,13 +1129,13 @@ parse_stab_string (void *dhandle, struct stab_handle *info, int stabtype, case 'Y': /* SUNPro C++ Namespace =Yn0. */ /* Skip the namespace mapping, as it is not used now. */ - if (*(++p) == 'n' && *(++p) == '0') + if (*p++ != 0 && *p++ == 'n' && *p++ == '0') { /* =Yn0name; */ - while (*p != ';') + while (*p && *p != ';') ++p; - ++p; - return true; + if (*p) + return true; } /* TODO SUNPro C++ support: Support default arguments after F,P parameters |