projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move init of a bunch of globals into main so we are at least
[oweals/busybox.git]
/
shell
/
cmdedit.c
diff --git
a/shell/cmdedit.c
b/shell/cmdedit.c
index ce5450032eff30ccdf69d367134d65e013031fb0..ec9939312a6ce57df86fd0cbe33496c53f5d15d3 100644
(file)
--- a/
shell/cmdedit.c
+++ b/
shell/cmdedit.c
@@
-355,6
+355,10
@@
static void parse_prompt(const char *prmt_ptr)
char c;
char *pbuf;
+ if (!pwd_buf) {
+ pwd_buf=unknown;
+ }
+
while (*prmt_ptr) {
pbuf = buf;
pbuf[1] = 0;