* config/tc-txvu.c (assemble_insn): Initialize errmsg = NULL
before calling insert routine.
This commit is contained in:
parent
fbe2ad4648
commit
f62a42d0dc
|
@ -234,6 +234,7 @@ assemble_insn (str, lower_p, buf)
|
||||||
{
|
{
|
||||||
if (operand->insert)
|
if (operand->insert)
|
||||||
{
|
{
|
||||||
|
errmsg = NULL;
|
||||||
insn = (*operand->insert) (insn, operand, mods, 0, &errmsg);
|
insn = (*operand->insert) (insn, operand, mods, 0, &errmsg);
|
||||||
/* If we get an error, go on to try the next insn. */
|
/* If we get an error, go on to try the next insn. */
|
||||||
if (errmsg)
|
if (errmsg)
|
||||||
|
@ -768,9 +769,7 @@ txvu_insert_operand (insn, operand, mods, val, file, line)
|
||||||
|
|
||||||
if (operand->insert)
|
if (operand->insert)
|
||||||
{
|
{
|
||||||
const char *errmsg;
|
const char *errmsg = NULL;
|
||||||
|
|
||||||
errmsg = NULL;
|
|
||||||
insn = (*operand->insert) (insn, operand, mods, (long) val, &errmsg);
|
insn = (*operand->insert) (insn, operand, mods, (long) val, &errmsg);
|
||||||
if (errmsg != (const char *) NULL)
|
if (errmsg != (const char *) NULL)
|
||||||
as_warn (errmsg);
|
as_warn (errmsg);
|
||||||
|
|
Loading…
Reference in New Issue