From: root Date: Thu, 13 Dec 2007 18:24:36 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=26cfb5181f2b009cedcaaa2f2aa9b3233f12403c;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/rxvtd.C b/src/rxvtd.C index d3d70f6f..616fb527 100644 --- a/src/rxvtd.C +++ b/src/rxvtd.C @@ -198,11 +198,11 @@ void server::read_cb (ev::io &w, int revents) 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) { diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs index 2df37e8e..7657f032 100644 --- a/src/rxvtperl.xs +++ b/src/rxvtperl.xs @@ -859,18 +859,11 @@ _new (AV *env, AV *arg) 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");