Land #5504, handle cases where the script may be empty

bug/bundler_fix
HD Moore 2015-06-07 14:20:00 -05:00
commit edcd1e3bf9
No known key found for this signature in database
GPG Key ID: 7549FB3DB1DD1F32
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module Powershell
begin
# Open code file for reading
fd = ::File.new(code, 'rb')
fd = ::File.new(code || '', 'rb')
while (line = fd.gets)
@code << line
end