Don't try to open HISTFILE if the variable is unset.
authorjca <jca@openbsd.org>
Mon, 15 Jan 2018 22:30:38 +0000 (22:30 +0000)
committerjca <jca@openbsd.org>
Mon, 15 Jan 2018 22:30:38 +0000 (22:30 +0000)
commite2f403d15ab190a455dd9d4efca30d7dfb7cc64f
tree713a675fbac812b93e4c7918b21f3671c715562d
parent142c034f02183f3519040a3e39a69a51b83676b4
Don't try to open HISTFILE if the variable is unset.

str_val returns null, not NULL, if the variable isn't set.  The
erroneous check means that we later tried to open("").

ok millert@ tb@ anton@ benno@
bin/ksh/history.c