lineedit: fix PS1='\W' for root directory
No binary (build failed)
gcc -Wp,-MD,applets/.applet_tables.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o applets/applet_tables applets/applet_tables.c
(log yok)
| @@ -2079,7 +2079,7 @@ static void parse_and_put_prompt(const char *prmt_ptr) | |
| if (c == 'w') | |
| break; | |
| cp = strrchr(pbuf, '/'); | |
| - | if (cp) |
| + | if (cp && cp[1]) |
| pbuf = (char*)cp + 1; | |
| break; | |
| // bb_process_escape_sequence does this now: | |