… | |
… | |
857 | for (int i = AvFILL (env) + 1; i--; ) |
857 | for (int i = AvFILL (env) + 1; i--; ) |
858 | envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1)))); |
858 | envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1)))); |
859 | |
859 | |
860 | envv->push_back (0); |
860 | envv->push_back (0); |
861 | |
861 | |
862 | bool success; |
|
|
863 | |
|
|
864 | try |
862 | try |
865 | { |
863 | { |
866 | success = term->init (argv, envv); |
864 | term->init (argv, envv); |
867 | } |
865 | } |
868 | catch (const class rxvt_failure_exception &e) |
866 | catch (const class rxvt_failure_exception &e) |
869 | { |
|
|
870 | success = false; |
|
|
871 | } |
|
|
872 | |
|
|
873 | if (!success) |
|
|
874 | { |
867 | { |
875 | term->destroy (); |
868 | term->destroy (); |
876 | croak ("error while initializing new terminal instance"); |
869 | croak ("error while initializing new terminal instance"); |
877 | } |
870 | } |
878 | |
871 | |