summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-30 23:39:27 -0500
committerpommicket <pommicket@gmail.com>2022-12-30 23:39:27 -0500
commit25f6cd6f5ffb9ff34d9e22c38e9d72cdadce2dc9 (patch)
tree7f731a4098bd08fb0a301b3dfad7159a1a589374 /lsp.c
parent43bd0763959ecd8f8a835d09190b55ba6fab7d67 (diff)
basic find usages
Diffstat (limited to 'lsp.c')
-rw-r--r--lsp.c1
1 files changed, 1 insertions, 0 deletions
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;