From 8088ae95bbed2085c5fb196850c4e4b8df55c989 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 20 Jun 2022 11:38:17 +0100 Subject: patch 8.2.5138: various small issues Problem: Various small issues. Solution: Various small improvments. --- src/filepath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/filepath.c') diff --git a/src/filepath.c b/src/filepath.c index 654d03aab0..854d823c97 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -1314,7 +1314,7 @@ f_glob(typval_T *argvars, typval_T *rettv) if (rettv->v_type == VAR_STRING) rettv->vval.v_string = ExpandOne(&xpc, tv_get_string(&argvars[0]), NULL, options, WILD_ALL); - else if (rettv_list_alloc(rettv) != FAIL) + else if (rettv_list_alloc(rettv) == OK) { int i; @@ -1395,7 +1395,7 @@ f_globpath(typval_T *argvars, typval_T *rettv) globpath(tv_get_string(&argvars[0]), file, &ga, flags); if (rettv->v_type == VAR_STRING) rettv->vval.v_string = ga_concat_strings(&ga, "\n"); - else if (rettv_list_alloc(rettv) != FAIL) + else if (rettv_list_alloc(rettv) == OK) for (i = 0; i < ga.ga_len; ++i) list_append_string(rettv->vval.v_list, ((char_u **)(ga.ga_data))[i], -1); -- cgit v1.2.3