aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl <griebl@gmx.de>2002-07-30 23:13:51 +0000
committerRobert Griebl <griebl@gmx.de>2002-07-30 23:13:51 +0000
commitb230159958fd527dafb21aa5b157a928e46ee181 (patch)
tree909f63e9b6ff6b4f03f946c7017feff8a3525adc
parentdf03932b7e933f0f5f55aad24fac3b9d531dc4a1 (diff)
downloadbusybox-w32-b230159958fd527dafb21aa5b157a928e46ee181.tar.gz
busybox-w32-b230159958fd527dafb21aa5b157a928e46ee181.tar.bz2
busybox-w32-b230159958fd527dafb21aa5b157a928e46ee181.zip
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
-rw-r--r--shell/cmdedit.c3
1 files changed, 2 insertions, 1 deletions
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)
275 275
276static inline void out1str(const char *s) 276static inline void out1str(const char *s)
277{ 277{
278 fputs(s, stdout); 278 if ( s )
279 fputs(s, stdout);
279} 280}
280static inline void beep(void) 281static inline void beep(void)
281{ 282{