VTE: Fix crash when trying to change VTE directory at startup
commit095d88958296200ee890dc2b45e0123f1559705b
authorColomban Wendling <ban@herbesfolles.org>
Mon, 22 Aug 2016 17:52:25 +0000 (22 19:52 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 22 Aug 2016 18:03:18 +0000 (22 20:03 +0200)
tree7f495a600de234e5af0ff05e4aca5cacb2c7e0bf
parentd3b0bbec268c7f063a2d018c9f27602f989e0d81
VTE: Fix crash when trying to change VTE directory at startup

2150302fe6e88f88e5eba78502b478be2b78c662 introduced a bug, because
configuration_load_session_files() calls VTE code if vte_info.have_vte
is non-FALSE, before vte_init() has been called.  So, it relied in the
implicit 0-initialization of the vte_info global, which the above
commit changed carelessly.

So, instead of altering vte_info.have_vte early, add a specific flag
for whether VTE is disabled on the command line.

Also, explicitly initialize vte_info to suggest to the reader the
default values does matter.
src/keyfile.c
src/libmain.c
src/vte.c
src/vte.h