Print this page
code review from Robert

@@ -959,11 +959,10 @@
 uintptr_t
 ld_sym_spec(Ofl_desc *ofl)
 {
         Sym_desc        *sdp;
         Sg_desc         *sgp;
-        Aliste          idx1;
 
         DBG_CALL(Dbg_syms_spec_title(ofl->ofl_lml));
 
         /*
          * For each section in the output file, look for symbols named for the

@@ -973,10 +972,12 @@
          * The symbols are given values at the same time as the other special
          * symbols.
          */
         if (!(ofl->ofl_flags & FLG_OF_RELOBJ) ||
             (ofl->ofl_flags & FLG_OF_KMOD)) {
+                Aliste          idx1;
+
                 for (APLIST_TRAVERSE(ofl->ofl_segs, idx1, sgp)) {
                         Os_desc *osp;
                         Aliste idx2;
 
                         for (APLIST_TRAVERSE(sgp->sg_osdescs, idx2, osp)) {