From f8ff3741386462460ce76a1e509b42e5c854dd6e Mon Sep 17 00:00:00 2001
From: sandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Tue, 30 Jul 2002 23:13:51 +0000
Subject: Fixed a timing bug which occured when bb ash is run in a rxvt on the
 HP iPAQ. Sometimes we get a SIGWINCH and want to print the prompt, although
 the prompt is not yet initialised (0) .. so just don't print a prompt as long
 as the prompt string is 0

git-svn-id: svn://busybox.net/trunk/busybox@5124 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 shell/cmdedit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index 5cbc81131..eee32131a 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -275,7 +275,8 @@ static void goto_new_line(void)
 
 static inline void out1str(const char *s)
 {
-	fputs(s, stdout);
+	if ( s )
+		fputs(s, stdout);
 }
 static inline void beep(void)
 {
-- 
cgit v1.2.3-55-g6feb