summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index 1eec19c..56df17d 100644
--- a/ted.c
+++ b/ted.c
@@ -191,6 +191,7 @@ Settings *ted_get_settings(Ted *ted, const char *path, Language language) {
}
LSP *ted_get_lsp_by_id(Ted *ted, LSPID id) {
+ if (id == 0) return NULL;
for (int i = 0; ted->lsps[i]; ++i) {
LSP *lsp = ted->lsps[i];
if (lsp->id == id)