summaryrefslogtreecommitdiff
path: root/lib/cgi/cookie.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-06 03:01:52 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-06 03:01:52 +0000
commite41936441bf9fcab9fb4d8ceb70cc73d2a38c9c0 (patch)
tree079b00fe5c87f81371b67a62a59dadf5258229c9 /lib/cgi/cookie.rb
parent2ff26f22209c5b260585fcac2383ae6c91aef766 (diff)
Surpress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi/cookie.rb')
-rw-r--r--lib/cgi/cookie.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb
index 513bd40989f..97a92efc3a5 100644
--- a/lib/cgi/cookie.rb
+++ b/lib/cgi/cookie.rb
@@ -54,6 +54,8 @@ class CGI
#
# These keywords correspond to attributes of the cookie object.
def initialize(name = "", *value)
+ @domain = nil
+ @expires = nil
if name.kind_of?(String)
@name = name
%r|^(.*/)|.match(ENV["SCRIPT_NAME"])