diff options
author | Eric Andersen | 2001-07-02 15:36:57 +0000 |
---|---|---|
committer | Eric Andersen | 2001-07-02 15:36:57 +0000 |
commit | 8f6978405ddf1c7e280b097b655b6acbb8aa46ab (patch) | |
tree | da7f63e01738b8a0d83b026384ebcae53412e944 /shell | |
parent | 10175a43eec696e5de1a35c12a31367808016c0b (diff) | |
download | busybox-8f6978405ddf1c7e280b097b655b6acbb8aa46ab.zip busybox-8f6978405ddf1c7e280b097b655b6acbb8aa46ab.tar.gz |
Patch from vodz to fix freeing a static in cmdedit.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cmdedit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 981253d..4f124d6 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c @@ -442,7 +442,8 @@ static void parse_prompt(const char *prmt_ptr) if (flg_not_length == ']') sub_len++; } - free(pwd_buf); + if(pwd_buf!=(char *)unknown) + free(pwd_buf); cmdedit_prompt = prmt_mem_ptr; cmdedit_prmt_len = prmt_len - sub_len; put_prompt(); |