Skip to content

Commit

Permalink
Fix botched variable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
koalaman committed Jul 2, 2019
1 parent 9e6b07d commit ef764b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShellCheck/AnalyzerLib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ getModifiedVariableCommand base@(T_SimpleCommand _ _ (T_NormalWord _ (T_Literal

-- get the FLAGS_ variable created by a shflags DEFINE_ call
getFlagVariable (n:v:_) = do
name <- getLiteralString v
name <- getLiteralString n
return (base, n, "FLAGS_" ++ name, DataString $ SourceExternal)
getFlagVariable _ = Nothing

Expand Down

0 comments on commit ef764b6

Please sign in to comment.