diff options
author | Alan Modra <amodra@gmail.com> | 2024-12-21 08:33:23 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-12-24 14:54:05 +1030 |
commit | f404dc565a4ccfe6922b45cf5526c319aedf75d6 (patch) | |
tree | 2c611949b350b5ebeb54479d497aabb81b467325 | |
parent | 2a09a1253ac6876f6c7ad1bfacec7ff652889b18 (diff) | |
download | gdb-f404dc565a4ccfe6922b45cf5526c319aedf75d6.zip gdb-f404dc565a4ccfe6922b45cf5526c319aedf75d6.tar.gz gdb-f404dc565a4ccfe6922b45cf5526c319aedf75d6.tar.bz2 |
Fix error: macro may be used uninitialized
PR 32391 commit 9f2e3c21f6 fallout
-rw-r--r-- | gas/macro.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/macro.c b/gas/macro.c index a0f2a5c..3d5a9f1 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -1411,7 +1411,6 @@ check_macro (const char *line, sb *expand, { const char *s; char *copy, *cls; - macro_entry *macro; sb line_sb; if (! macros_defined) @@ -1431,8 +1430,8 @@ check_macro (const char *line, sb *expand, for (cls = copy; *cls != '\0'; cls ++) *cls = TOLOWER (*cls); - int i; - for (i = macro_nesting_depth; i >= 0; i--) + macro_entry *macro = NULL; + for (int i = macro_nesting_depth; i >= 0; i--) { macro = str_hash_find (macro_hash[i], copy); if (macro != NULL) |