* xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment

inside if clause.
This commit is contained in:
Pierre Muller 2011-04-19 14:12:50 +00:00
parent 1c6e1b0de2
commit 9b13a2db10
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
* xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
inside if clause.
2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
Pedro Alves <pedro@codesourcery.com>

View File

@ -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;