Golevka / emacs-clang-complete-async

An emacs plugin to complete C and C++ code using libclang
359 stars 71 forks source link

Crash after clang_codeCompleteAt returned NULL #16

Closed ghost closed 11 years ago

ghost commented 11 years ago

clang_codeCompleteAt returns NULL on completion failure. After call to completion_codeCompleteAt, res == NULL. Further usage of the NULL pointer leads to crash on line: clang_sortCodeCompletionResults(res->Results, res->NumResults);

Golevka commented 11 years ago

Mine, tried to fix this problem in commit 516ab72ded22009d6613350850fda11141f907ac and I hope it could work.