From 54969f4ef5825205ecde09ea80f4087fc3b68e5d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 7 Feb 2022 13:56:44 +0000 Subject: patch 8.2.4318: various comment and indent mistakes, returning wrong zero Problem: Various comment and indent mistakes, returning wrong zero. Solution: Fix the mistakes. Return NULL instead of FAIL. --- src/vim9cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vim9cmds.c') 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; -- cgit v1.2.1