diff options
Diffstat (limited to 'src/symbols.c')
-rw-r--r-- | src/symbols.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/symbols.c b/src/symbols.c index 015b933..ac67662 100644 --- a/src/symbols.c +++ b/src/symbols.c @@ -326,10 +326,11 @@ teco_state_scintilla_lparam_done(teco_machine_main_t *ctx, const teco_string_t * return NULL; } - lParam = (sptr_t)CreateLexer(str->data); + const gchar *lexer = str->data ? : ""; + lParam = (sptr_t)CreateLexer(lexer); if (!lParam) { g_set_error(error, TECO_ERROR, TECO_ERROR_FAILED, - "Lexilla lexer \"%s\" not found.", str->data); + "Lexilla lexer \"%s\" not found.", lexer); return NULL; } } else if (str->len > 0) { |