diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-12-29 13:08:48 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-29 13:08:48 -0500 |
commit | 276cb932b6494ef32c817752ac4882ce42f37ef4 (patch) | |
tree | 81b8ab66975470788c394c4b86393dcda68b6913 /lib/readline/histfile.c | |
parent | 22818c1449823d8de5430f734da38d1eae943417 (diff) | |
download | bash-276cb932b6494ef32c817752ac4882ce42f37ef4.tar.gz |
commit bash-20110525 snapshot
Diffstat (limited to 'lib/readline/histfile.c')
-rw-r--r-- | lib/readline/histfile.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/readline/histfile.c b/lib/readline/histfile.c index 30a61824..4b5a8f5d 100644 --- a/lib/readline/histfile.c +++ b/lib/readline/histfile.c @@ -125,14 +125,7 @@ history_filename (filename) home = sh_get_env_value ("HOME"); if (home == 0) - { -#if 0 - home = "."; - home_len = 1; -#else - return (NULL); -#endif - } + return (NULL); else home_len = strlen (home); @@ -430,7 +423,7 @@ history_do_write (filename, nelements, overwrite) int nelements, overwrite; { register int i; - char *output; + char *output, *bakname; int file, mode, rv; #ifdef HISTORY_USE_MMAP size_t cursize; |