aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-01-24 00:44:53 +0000
committerDoug Evans <dje@google.com>1998-01-24 00:44:53 +0000
commitf62a42d0dc1ee3f329ea6be9c4b3a3d8848e46f5 (patch)
tree73292f765030524157e30e1f0cc214785e6ddace /gas
parentfbe2ad4648553027fecca48393d829e1ba603904 (diff)
downloadgdb-f62a42d0dc1ee3f329ea6be9c4b3a3d8848e46f5.zip
gdb-f62a42d0dc1ee3f329ea6be9c4b3a3d8848e46f5.tar.gz
gdb-f62a42d0dc1ee3f329ea6be9c4b3a3d8848e46f5.tar.bz2
* config/tc-txvu.c (assemble_insn): Initialize errmsg = NULL
before calling insert routine.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-txvu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-txvu.c b/gas/config/tc-txvu.c
index 502f28a..26d4f35 100644
--- a/gas/config/tc-txvu.c
+++ b/gas/config/tc-txvu.c
@@ -234,6 +234,7 @@ assemble_insn (str, lower_p, buf)
{
if (operand->insert)
{
+ errmsg = NULL;
insn = (*operand->insert) (insn, operand, mods, 0, &errmsg);
/* If we get an error, go on to try the next insn. */
if (errmsg)
@@ -768,9 +769,7 @@ txvu_insert_operand (insn, operand, mods, val, file, line)
if (operand->insert)
{
- const char *errmsg;
-
- errmsg = NULL;
+ const char *errmsg = NULL;
insn = (*operand->insert) (insn, operand, mods, (long) val, &errmsg);
if (errmsg != (const char *) NULL)
as_warn (errmsg);