Bläddra i källkod

Stop stomping 'mname' global

Define it as local and keep it.
Alois Mahdal 5 år sedan
förälder
incheckning
ff4a9a4745
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      src/shellfu.sh.skel

+ 1
- 0
src/shellfu.sh.skel Visa fil

@@ -185,6 +185,7 @@ shellfu() {
185 185
             # Show version of module named $1
186 186
             #
187 187
             local mname=$1
188
+            local mpath
188 189
             mpath=$(shellfu _select_mfile "$mname") || {
189 190
                 shellfu __warn "cannot find module: $mname"
190 191
                 return 3