summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authoradam <adam@FreeBSD.org>1994-09-25 08:03:24 +0000
committeradam <adam@FreeBSD.org>1994-09-25 08:03:24 +0000
commit420ecd16475c16bac2949da3d39775e1debd4a5a (patch)
tree1e16df755baa5ad1a5b5ac7b143f71b105c69e28 /gnu
parent194f2d78ca4351417ec6449abbad19c44eac09e9 (diff)
downloadFreeBSD-src-420ecd16475c16bac2949da3d39775e1debd4a5a.zip
FreeBSD-src-420ecd16475c16bac2949da3d39775e1debd4a5a.tar.gz
previous fix was not complete
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libreadline/readline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/lib/libreadline/readline.c b/gnu/lib/libreadline/readline.c
index 941243e..48a16a7 100644
--- a/gnu/lib/libreadline/readline.c
+++ b/gnu/lib/libreadline/readline.c
@@ -278,8 +278,7 @@ readline (prompt)
return ((char *)NULL);
}
- if (rl_prompt != NULL)
- rl_visible_prompt_length = rl_expand_prompt (rl_prompt);
+ rl_visible_prompt_length = rl_prompt ? rl_expand_prompt (rl_prompt) : 0;
rl_initialize ();
rl_prep_terminal (_rl_meta_flag);
OpenPOWER on IntegriCloud