diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-09 09:33:48 +0100 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-11-11 01:43:13 +0100 |
commit | 1002e3fe1ddb1d95c838197dc802c3b1ba094bd3 (patch) | |
tree | d1bc4bdb559c02148a858f29669e1ae79ec156e9 /src/nvim/diff.c | |
parent | d6472f459bc531bf6e24c3bcc1916dba16ba1f10 (diff) | |
download | rneovim-1002e3fe1ddb1d95c838197dc802c3b1ba094bd3.tar.gz rneovim-1002e3fe1ddb1d95c838197dc802c3b1ba094bd3.tar.bz2 rneovim-1002e3fe1ddb1d95c838197dc802c3b1ba094bd3.zip |
Fix warnings: fold.c: get_foldtext(): Np dereference: FP.
Problem : Dereference of null pointer @ 1701.
Diagnostic : False positive.
Rationale : Comparison `last_wp != wp` just after initializing
`last_wp` to NULL makes the compiler think `wp` can be
null. Error appears then on codepath assuming comparison is
false (i.e. `wp` is null).
Resolution : Change order of OR clauses.
That seems not to give motives for the analyzer to check
the `wp` null path and removes the warning.
But potential null dereference is still there, so we add
the nonnull annotation to `wp` parameter.
Diffstat (limited to 'src/nvim/diff.c')
0 files changed, 0 insertions, 0 deletions