diff options
author | Dave Beckett <dave@dajobe.org> | 2014-04-20 13:16:57 -0700 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2014-04-20 13:16:57 -0700 |
commit | 5df2d2b831b8df7a2521da914659571f359099a6 (patch) | |
tree | 4162e9fa746d70ff29ede899281f1ccd5e53662a /scripts | |
parent | aa1a891eb0b5fa7a29337e0fc52fc3f026261835 (diff) | |
download | raptor-5df2d2b831b8df7a2521da914659571f359099a6.tar.gz |
Use YY_CURRENT_BUFFER_LVALUE in PREFIX_pop_buffer_state [coverity CID 29295]
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/fix-flex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/fix-flex b/scripts/fix-flex index 63395cb2..614331f5 100755 --- a/scripts/fix-flex +++ b/scripts/fix-flex @@ -137,5 +137,10 @@ EOT } } + if($cur_function eq $prefix.'pop_buffer_state') { + # Change last if use of YY_CURRENT_BUFFER macro to unconditional value + s%^(\s*if \(\s*)YY_CURRENT_BUFFER(\s*\)\s*\{.*)$%${1}YY_CURRENT_BUFFER_LVALUE${2}%; + } + print; } |