diff options
author | adam <adam@FreeBSD.org> | 1994-09-25 08:03:24 +0000 |
---|---|---|
committer | adam <adam@FreeBSD.org> | 1994-09-25 08:03:24 +0000 |
commit | 420ecd16475c16bac2949da3d39775e1debd4a5a (patch) | |
tree | 1e16df755baa5ad1a5b5ac7b143f71b105c69e28 /gnu/lib | |
parent | 194f2d78ca4351417ec6449abbad19c44eac09e9 (diff) | |
download | FreeBSD-src-420ecd16475c16bac2949da3d39775e1debd4a5a.zip FreeBSD-src-420ecd16475c16bac2949da3d39775e1debd4a5a.tar.gz |
previous fix was not complete
Diffstat (limited to 'gnu/lib')
-rw-r--r-- | gnu/lib/libreadline/readline.c | 3 |
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); |