term->log_hook = &log_cb;
term->getfd_hook = &getfd_cb;
- bool success;
+ bool success = true;
try
{
- success = term->init (argv, envv);
+ term->init (argv, envv);
}
catch (const class rxvt_failure_exception &e)
{
envv->push_back (0);
- bool success;
-
try
{
- success = term->init (argv, envv);
+ term->init (argv, envv);
}
catch (const class rxvt_failure_exception &e)
- {
- success = false;
- }
-
- if (!success)
{
term->destroy ();
croak ("error while initializing new terminal instance");