* xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
inside if clause.
This commit is contained in:
parent
1c6e1b0de2
commit
9b13a2db10
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue