diff --git a/lib/ffi-glib/array.rb b/lib/ffi-glib/array.rb
index <HASH>..<HASH> 100644
--- a/lib/ffi-glib/array.rb
+++ b/lib/ffi-glib/array.rb
@@ -22,8 +22,7 @@ module GLib
 
     def append_vals ary
       bytes = GirFFI::InPointer.from_array element_type, ary
-      len = ary.length
-      Lib.g_array_append_vals(self, bytes, len)
+      Lib.g_array_append_vals(self, bytes, ary.length)
       self
     end
Inline temporary variable that has a name clash with a method