[前][次][番号順一覧][スレッド一覧]

ruby-changes:6754

From: mame <ko1@a...>
Date: Wed, 30 Jul 2008 22:20:36 +0900 (JST)
Subject: [ruby-changes:6754] Ruby:r18270 (trunk): * parse.y (vtable_free): remove meaningless null check.

mame	2008-07-30 22:19:34 +0900 (Wed, 30 Jul 2008)

  New Revision: 18270

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18270

  Log:
    * parse.y (vtable_free): remove meaningless null check.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18269)
+++ ChangeLog	(revision 18270)
@@ -1,3 +1,7 @@
+Wed Jul 30 22:19:13 2008  Yusuke Endoh  <mame@t...>
+
+	* parse.y (vtable_free): remove meaningless null check.
+
 Wed Jul 30 22:08:25 2008  Tanaka Akira  <akr@f...>
 
 	* dir.c (struct dir_data): change path field char * to VALUE.
Index: parse.y
===================================================================
--- parse.y	(revision 18269)
+++ parse.y	(revision 18270)
@@ -155,9 +155,7 @@
         if (tbl->tbl) {
             xfree(tbl->tbl);
         }
-        if (tbl) {
-            xfree(tbl);
-        }
+        xfree(tbl);
     }
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]