diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-07 13:56:44 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-07 13:56:44 +0000 |
commit | 54969f4ef5825205ecde09ea80f4087fc3b68e5d (patch) | |
tree | a33efdb636d52d421266829a530a15e8f3cedb16 /src/vim9cmds.c | |
parent | 63ff72aab91679725077eab5c5405267792268bd (diff) | |
download | vim-git-54969f4ef5825205ecde09ea80f4087fc3b68e5d.tar.gz |
patch 8.2.4318: various comment and indent mistakes, returning wrong zerov8.2.4318
Problem: Various comment and indent mistakes, returning wrong zero.
Solution: Fix the mistakes. Return NULL instead of FAIL.
Diffstat (limited to 'src/vim9cmds.c')
-rw-r--r-- | src/vim9cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vim9cmds.c b/src/vim9cmds.c index 90b61dbb3..b9a029392 100644 --- a/src/vim9cmds.c +++ b/src/vim9cmds.c @@ -1420,7 +1420,7 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED) { semsg(_(e_separator_mismatch_str), p); vim_free(tofree); - return FAIL; + return NULL; } if (tofree == NULL) len = (int)(end - (p + 1)); @@ -1430,9 +1430,9 @@ compile_catch(char_u *arg, cctx_T *cctx UNUSED) vim_free(tofree); p += len + 2 + dropped; if (pat == NULL) - return FAIL; + return NULL; if (generate_PUSHS(cctx, &pat) == FAIL) - return FAIL; + return NULL; if (generate_COMPARE(cctx, EXPR_MATCH, FALSE) == FAIL) return NULL; |