Mercurial > vim
comparison src/vim9compile.c @ 19213:b18437efabac v8.2.0165
patch 8.2.0165: Coverity warning for using NULL pointer
Commit: https://github.com/vim/vim/commit/5b18c248d3fe4961076dbc59c960ef60c80650f0
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 28 22:30:32 2020 +0100
patch 8.2.0165: Coverity warning for using NULL pointer
Problem: Coverity warning for using NULL pointer.
Solution: Add missing "else".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 28 Jan 2020 22:45:03 +0100 |
parents | 9f98957582d6 |
children | 173b99509038 |
comparison
equal
deleted
inserted
replaced
19212:5421c1041d31 | 19213:b18437efabac |
---|---|
4073 { | 4073 { |
4074 if (scope == NULL) | 4074 if (scope == NULL) |
4075 emsg(_(e_no_endtry)); | 4075 emsg(_(e_no_endtry)); |
4076 else if (scope->se_type == WHILE_SCOPE) | 4076 else if (scope->se_type == WHILE_SCOPE) |
4077 emsg(_(e_endwhile)); | 4077 emsg(_(e_endwhile)); |
4078 if (scope->se_type == FOR_SCOPE) | 4078 else if (scope->se_type == FOR_SCOPE) |
4079 emsg(_(e_endfor)); | 4079 emsg(_(e_endfor)); |
4080 else | 4080 else |
4081 emsg(_(e_endif)); | 4081 emsg(_(e_endif)); |
4082 return NULL; | 4082 return NULL; |
4083 } | 4083 } |