From e09e9ca8103f55d3913816388c5754cc2afe3109 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 27 Jul 2018 14:44:18 -0400 Subject: [PATCH] lint --- src/nvim/file_search.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/nvim/file_search.c b/src/nvim/file_search.c index 6c1a2f6d7b..ee775bab4a 100644 --- a/src/nvim/file_search.c +++ b/src/nvim/file_search.c @@ -1221,18 +1221,19 @@ static ff_stack_T *ff_pop(ff_search_ctx_T *search_ctx) /* * free the given stack element */ -static void ff_free_stack_element(ff_stack_T *stack_ptr) +static void ff_free_stack_element(ff_stack_T *const stack_ptr) { if (stack_ptr == NULL) { return; } - /* free handles possible NULL pointers */ + // free handles possible NULL pointers xfree(stack_ptr->ffs_fix_path); xfree(stack_ptr->ffs_wc_path); - if (stack_ptr->ffs_filearray != NULL) + if (stack_ptr->ffs_filearray != NULL) { FreeWild(stack_ptr->ffs_filearray_size, stack_ptr->ffs_filearray); + } xfree(stack_ptr); }