Commit d080986
committed
patch 9.1.0812: Coverity warns about dereferencing NULL ptr
Problem: Coverity warns about dereferencing NULL ptr
in check_colorcolumn()
Solution: verify that wp is not null before accessing it
related: #15914
Signed-off-by: Christian Brabandt <cb@256bit.org>1 parent 2f6efac commit d080986
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
| 708 | + | |
707 | 709 | | |
708 | 710 | | |
709 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7934 | 7934 | | |
7935 | 7935 | | |
7936 | 7936 | | |
7937 | | - | |
| 7937 | + | |
7938 | 7938 | | |
7939 | 7939 | | |
7940 | 7940 | | |
| |||
7947 | 7947 | | |
7948 | 7948 | | |
7949 | 7949 | | |
7950 | | - | |
| 7950 | + | |
7951 | 7951 | | |
7952 | 7952 | | |
7953 | 7953 | | |
| |||
0 commit comments