lib/rb-fsevent/fsevent.rb in rb-fsevent-0.11.1 vs lib/rb-fsevent/fsevent.rb in rb-fsevent-0.11.2
- old
+ new
@@ -42,11 +42,11 @@
# please note the use of IO::select() here, as it is used specifically to
# preserve correct signal handling behavior in ruby 1.8.
while @running && IO::select([@pipe], nil, nil, nil)
# managing the IO ourselves allows us to be careful and never pass an
# incomplete message to OTNetstring.parse()
- message = ""
- length = ""
+ message = String.new
+ length = String.new
byte = nil
reading_length = true
found_length = false