aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 45448dfab..93ab86426 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1875,7 +1875,7 @@ static void parse_and_put_prompt(const char *prmt_ptr)
1875 if (c == 'w') 1875 if (c == 'w')
1876 break; 1876 break;
1877 cp = strrchr(pbuf, '/'); 1877 cp = strrchr(pbuf, '/');
1878 if (cp != NULL && cp != pbuf) 1878 if (cp)
1879 pbuf = (char*)cp + 1; 1879 pbuf = (char*)cp + 1;
1880 break; 1880 break;
1881# endif 1881# endif