From 5209d2271b5e66ea3da0fc9056f99b8cafc14aa6 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Thu, 8 May 2014 15:03:25 -0300 Subject: Replace ga->ga_len == 0 checks with GA_EMPTY(ga) Used Coccinelle to perform the changes @@ expression E; @@ <... ( // E.ga_len == 0 is isomorphic to !E.ga_len - E.ga_len == 0 + GA_EMPTY(&E) | - E->ga_len == 0 + GA_EMPTY(E) ) ...> --- src/nvim/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/path.c') diff --git a/src/nvim/path.c b/src/nvim/path.c index 87c967edbb..7a3c644499 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -893,7 +893,7 @@ expand_in_path ( ga_init(&path_ga, (int)sizeof(char_u *), 1); expand_path_option(curdir, &path_ga); free(curdir); - if (path_ga.ga_len == 0) + if (GA_EMPTY(&path_ga)) return 0; paths = ga_concat_strings(&path_ga); -- cgit