From 4de54f5d00f3da9c0831ab3891b1e4909b930426 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 12 Oct 2008 18:26:57 +0000 Subject: 25859: avoid possible NULL dereferencing if RC_QUOTES is set. --- Src/Zle/zle_tricky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index bc0152401..dbb01f483 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -1235,7 +1235,7 @@ get_comp_string(void) /* This is done when the lexer reached the word the cursor is on. */ tt = tokstr ? dupstring(tokstr) : NULL; - if (isset(RCQUOTES)) { + if (isset(RCQUOTES) && tt) { char *tt1, *e = tt + zlemetacs - wb; for (tt1 = tt; *tt1; tt1++) { if (*tt1 == Snull) { -- cgit 1.4.1