diff options
author | Pierre Muller <muller@ics.u-strasbg.fr> | 2011-04-19 14:12:48 +0000 |
---|---|---|
committer | Pierre Muller <muller@ics.u-strasbg.fr> | 2011-04-19 14:12:48 +0000 |
commit | 71d156f45f7987e00cf8f20ace2132aa3e5f2855 (patch) | |
tree | fc384bb3e748d502005a62b035954fbeffcdf2ab /gdb/xcoffread.c | |
parent | caa9e8d9c05381244f050ea92731f5282be12ca1 (diff) | |
download | gdb-71d156f45f7987e00cf8f20ace2132aa3e5f2855.tar.gz |
* xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
inside if clause.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index fd60447210d..4dd048d5d96 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -1585,7 +1585,11 @@ process_xcoff_symbol (struct coff_symbol *cs, struct objfile *objfile) where we need to, which is not necessarily super-clean, but seems workable enough. */ - if (*name == ':' || (pp = (char *) strchr (name, ':')) == NULL) + if (*name == ':') + return NULL; + + pp = (char *) strchr (name, ':'); + if (pp == NULL) return NULL; ++pp; |