projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement suggestion from Adam Slattery, (don't default to killing closing bug #1190.
[oweals/busybox.git]
/
cmdedit.c
diff --git
a/cmdedit.c
b/cmdedit.c
index 981253db1638e01048043054c00b42c4b0507d8d..4f124d6475989e4e0bc804e35c8669000455ae6f 100644
(file)
--- a/
cmdedit.c
+++ b/
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();