aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-07-04 17:39:26 +0300
committerZyX <kp-pav@yandex.ru>2017-07-04 18:37:02 +0300
commitaf1f17f1dcd68ce75cfe06a0ebcb3b34d85f98bf (patch)
treec1f5354478c62832fa25db1d6d8465054727fd90 /src/nvim/regexp.c
parentaaab5e39005ab5a1273092ae4cef7f1a27a5097a (diff)
downloadrneovim-af1f17f1dcd68ce75cfe06a0ebcb3b34d85f98bf.tar.gz
rneovim-af1f17f1dcd68ce75cfe06a0ebcb3b34d85f98bf.tar.bz2
rneovim-af1f17f1dcd68ce75cfe06a0ebcb3b34d85f98bf.zip
syntax: Fix V763: parameter always rewritten before being used
This is the result of malloc error handling elimination: push_current_state() used to (not) return OK depending on whether growing garray failed or not and this return was checked, if errorred out push_next_match() will simply return its argument unchanged. Now when allocations are supposed to either always succeed or crash Neovim this check was returned, push_current_state() was stripped of its return value and moved out of if() condition, resulting in V763.
Diffstat (limited to 'src/nvim/regexp.c')
0 files changed, 0 insertions, 0 deletions