From 25f6cd6f5ffb9ff34d9e22c38e9d72cdadce2dc9 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 30 Dec 2022 23:39:27 -0500 Subject: basic find usages --- lsp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lsp.c') diff --git a/lsp.c b/lsp.c index 81cb4c9..16e0087 100644 --- a/lsp.c +++ b/lsp.c @@ -604,6 +604,7 @@ bool lsp_covers_path(LSP *lsp, const char *path) { void lsp_cancel_request(LSP *lsp, LSPRequestID id) { if (!id) return; + if (!lsp) return; LSPRequest request = {.type = LSP_REQUEST_CANCEL}; request.data.cancel.id = id; -- cgit v1.2.3