diff options
Diffstat (limited to 'cmdedit.c')
-rw-r--r-- | cmdedit.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -355,6 +355,10 @@ static void parse_prompt(const char *prmt_ptr) | |||
355 | char c; | 355 | char c; |
356 | char *pbuf; | 356 | char *pbuf; |
357 | 357 | ||
358 | if (!pwd_buf) { | ||
359 | pwd_buf=unknown; | ||
360 | } | ||
361 | |||
358 | while (*prmt_ptr) { | 362 | while (*prmt_ptr) { |
359 | pbuf = buf; | 363 | pbuf = buf; |
360 | pbuf[1] = 0; | 364 | pbuf[1] = 0; |