aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 2db85d0d4..26a49a1c3 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1314,7 +1314,7 @@ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t
1314 /* If we enter read_line_input for the Nth time, 1314 /* If we enter read_line_input for the Nth time,
1315 * they may be already allocated! Need to free. */ 1315 * they may be already allocated! Need to free. */
1316 free(user_buf); 1316 free(user_buf);
1317 if (home_pwd_buf != null_str); 1317 if (home_pwd_buf != null_str)
1318 free(home_pwd_buf); 1318 free(home_pwd_buf);
1319 user_buf = xstrdup(entry->pw_name); 1319 user_buf = xstrdup(entry->pw_name);
1320 home_pwd_buf = xstrdup(entry->pw_dir); 1320 home_pwd_buf = xstrdup(entry->pw_dir);