*** empty log message ***
authorroot <root>
Thu, 13 Dec 2007 18:24:36 +0000 (18:24 +0000)
committerroot <root>
Thu, 13 Dec 2007 18:24:36 +0000 (18:24 +0000)
src/rxvtd.C
src/rxvtperl.xs

index d3d70f6f578176565b6f53c34450d199814f3803..616fb52714689ecc73735008e640df0e247454dc 100644 (file)
@@ -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)
               {
index 2df37e8e276d24df724679d7851dd4797ef434dc..7657f03213197c4f1cfa0866b3a225907a0a9d31 100644 (file)
@@ -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");