aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-05-08 15:03:25 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-17 07:02:44 -0300
commit5209d2271b5e66ea3da0fc9056f99b8cafc14aa6 (patch)
tree3202016b0c15f7c14561bfaa25d8109057df6c97 /src/nvim/path.c
parentb4efff652388260b548324f870201a5804e097f0 (diff)
downloadrneovim-5209d2271b5e66ea3da0fc9056f99b8cafc14aa6.tar.gz
rneovim-5209d2271b5e66ea3da0fc9056f99b8cafc14aa6.tar.bz2
rneovim-5209d2271b5e66ea3da0fc9056f99b8cafc14aa6.zip
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) ) ...>
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c2
1 files changed, 1 insertions, 1 deletions
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);