diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-10-12 18:26:57 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-10-12 18:26:57 +0000 |
commit | 4de54f5d00f3da9c0831ab3891b1e4909b930426 (patch) | |
tree | 8d54d388373e9141de872f5892e9817481028438 /Src | |
parent | 89b7eda334a0a20b223f0972b4056c48186082f3 (diff) | |
download | zsh-4de54f5d00f3da9c0831ab3891b1e4909b930426.tar.gz zsh-4de54f5d00f3da9c0831ab3891b1e4909b930426.tar.xz zsh-4de54f5d00f3da9c0831ab3891b1e4909b930426.zip |
25859: avoid possible NULL dereferencing if RC_QUOTES is set.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_tricky.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |