Further fix for bug #135 (added RISC error reporting).
authorShamus Hammons <jlhamm@acm.org>
Fri, 10 Jan 2020 15:06:55 +0000 (09:06 -0600)
committerShamus Hammons <jlhamm@acm.org>
Fri, 10 Jan 2020 15:06:55 +0000 (09:06 -0600)
riscasm.c

index 9ecc61da0b547fa7509b2718d707b26785cac778..3092e6e7017d4c0e0a5145baf33d3ffd2d09663a 100644 (file)
--- a/riscasm.c
+++ b/riscasm.c
@@ -230,7 +230,7 @@ int GenerateRISCCode(int state)
 
        uint64_t eval;                          // Expression value
        uint16_t eattr;                         // Expression attributes
-       SYM * esym;                                     // External symbol involved in expr.
+       SYM * esym = NULL;                      // External symbol involved in expr.
        TOKEN r_expr[EXPRSIZE];         // Expression token list
 
        // Get opcode parameter and type