summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/cmdedit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index 5cbc811..eee3213 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)
{