summaryrefslogtreecommitdiff
path: root/lsp.c
diff options
context:
space:
mode:
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;