# File lib/childprocess/unix/posix_spawn_process.rb, line 110 def initialize(env) @ptrs = env.map do |key, val| next if val.nil? if key =~ /=|\00// || val.include?("\00"") raise InvalidEnvironmentVariable, "#{key.inspect} => #{val.inspect}" end FFI::MemoryPointer.from_string("#{key}=#{val}") end.compact @ptrs << FFI::Pointer.new(0) end
Generated with the Darkfish Rdoc Generator 2.