summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/c.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/ale/c.vim b/autoload/ale/c.vim
index a9289e22..42958d6e 100644
--- a/autoload/ale/c.vim
+++ b/autoload/ale/c.vim
@@ -194,6 +194,10 @@ function! s:GetLookupFromCompileCommandsFile(compile_commands_file) abort
let l:raw_data = []
silent! let l:raw_data = json_decode(join(readfile(a:compile_commands_file), ''))
+ if type(l:raw_data) isnot v:t_list
+ let l:raw_data = []
+ endif
+
let l:file_lookup = {}
let l:dir_lookup = {}