diff options
Diffstat (limited to 'lsp.c')
-rw-r--r-- | lsp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -439,6 +439,8 @@ const char *lsp_document_path(LSP *lsp, LSPDocumentID document) { assert(0); return ""; } + // it's okay to keep a pointer to this around without the mutex locked + // we'll never change the path of a document ID. const char *path = lsp->document_data[document].path; SDL_UnlockMutex(lsp->document_mutex); return path; |