diff options
| author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-12-17 15:25:59 +0100 | 
|---|---|---|
| committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-12-17 21:45:01 +0100 | 
| commit | 693da009204f058494ef32dc5ce5c5d4298a61d6 (patch) | |
| tree | e5fdfe06ca3d34e496dc2d8d371b443c3762c432 /runtime/indent/verilog.vim | |
| parent | 10a45846dc959f8b3ab9436f0809e90d1adf4ee4 (diff) | |
| download | rneovim-693da009204f058494ef32dc5ce5c5d4298a61d6.tar.gz rneovim-693da009204f058494ef32dc5ce5c5d4298a61d6.tar.bz2 rneovim-693da009204f058494ef32dc5ce5c5d4298a61d6.zip | |
Fix warnings: option.c: makeset()/put_setnum(): Various (3): FP.
Problems   : Dereference of null pointer @ 6251.
             Dereference of null pointer @ 6267.
             Dereference of null pointer @ 6351.
Diagnostic : False positive.
Rationale  : Problems occur if varp is null after
             `varp = get_varp_scope(p, opt_flags);`.
             That can only happen if option is hidden. Those are options
             that can be set (for backwards compatibility reasons) but
             that do nothing (see `:h hidden-options`,
             `:h missing-options`). In particular, even if setting them
             is allowed, value is not stored, so these options have no
             real value.
             So, suggested error paths should not occur, as checks
             comparing option value and default value should discard
             them.
Resolution : We could just `assert(varp)` before line 6235
             `varp_local = varp;`. That was tried and worked.
             But we prefer modifying the code to explicitly skip hidden
             options.
             A redundant `!istermoption(p)` is removed too (it's already
             checked by for loop condition).
Diffstat (limited to 'runtime/indent/verilog.vim')
0 files changed, 0 insertions, 0 deletions
