mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 21:58:08 +00:00
Fix potential crash
This commit is contained in:
parent
e145f77996
commit
a8b68d21d7
@ -286,6 +286,8 @@ bool HasCallersOnSelfOrBaseOrDerived(QueryDatabase* db, QueryFunc& root) {
|
||||
std::vector<QueryFuncRef> GetCallersForAllBaseFunctions(QueryDatabase* db,
|
||||
QueryFunc& root) {
|
||||
std::vector<QueryFuncRef> callers;
|
||||
if (!root.def)
|
||||
return callers;
|
||||
|
||||
std::queue<QueryFuncId> queue;
|
||||
PushRange(&queue, root.def->base);
|
||||
|
Loading…
Reference in New Issue
Block a user