aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2018-04-15 21:45:29 +0300
committerZyX <kp-pav@yandex.ru>2018-04-15 21:46:32 +0300
commitdae1975394ba6b4b385115c3f4fa90b3ac7401d0 (patch)
treeba1393ae584cc0ba28df30f9dceb9b7049184d88 /src
parent2b7a8ceeb6849492b4273814f83e75adf5edd7c1 (diff)
downloadrneovim-dae1975394ba6b4b385115c3f4fa90b3ac7401d0.tar.gz
rneovim-dae1975394ba6b4b385115c3f4fa90b3ac7401d0.tar.bz2
rneovim-dae1975394ba6b4b385115c3f4fa90b3ac7401d0.zip
ops: Fix PVS/V547: allocator never returns NULL
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ops.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index d67737e845..2828a11d6e 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -3891,9 +3891,6 @@ fex_format (
// Make a copy, the option could be changed while calling it.
fex = vim_strsave(curbuf->b_p_fex);
- if (fex == NULL) {
- return 0;
- }
// Evaluate the function.
if (use_sandbox) {
sandbox++;
@@ -4712,9 +4709,6 @@ int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1)
// When there are many leading zeros it could be very long.
// Allocate a bit too much.
buf1 = xmalloc((size_t)length + NUMBUFLEN);
- if (buf1 == NULL) {
- goto theend;
- }
ptr = buf1;
if (negative && (!visual || was_positive)) {
*ptr++ = '-';