aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAdam David <adam@FreeBSD.org>1995-05-22 13:32:29 +0000
committerAdam David <adam@FreeBSD.org>1995-05-22 13:32:29 +0000
commite43fc3243b73490d57093bcd62834292aae504f8 (patch)
tree17b74854e3cce6c7106468d9c28e6a7a2d004327 /gnu
parent87c15d9649dee3abd7b377cbdef5c2b88397da9f (diff)
downloadsrc-e43fc3243b73490d57093bcd62834292aae504f8.tar.gz
src-e43fc3243b73490d57093bcd62834292aae504f8.zip
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/lib/libreadline/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libreadline/display.c b/gnu/lib/libreadline/display.c
index 66ddc435448f..07fc909e2f41 100644
--- a/gnu/lib/libreadline/display.c
+++ b/gnu/lib/libreadline/display.c
@@ -746,7 +746,7 @@ update_line (old, new, current_line, omax, nmax, inv_botlin)
escape sequences (like drawing the `unbold' sequence without a
corresponding `bold') that manifests itself on certain terminals. */
- lendiff = strlen (local_prompt);
+ lendiff = local_prompt ? strlen (local_prompt) : 0;
if (current_line == 0 && !_rl_horizontal_scroll_mode &&
lendiff > visible_length &&
_rl_last_c_pos > 0 && (ofd - old) >= lendiff && term_cr)