Skip to content

Commit

Permalink
killed uninit variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Oct 18, 2005
1 parent a862635 commit fc81db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CGI/Cookie.pm
Expand Up @@ -159,7 +159,7 @@ sub as_string {
push(@constant_values,"secure") if $secure = $self->secure;

my($key) = escape($self->name);
my($cookie) = join("=",$key,join("&",map escape($_),$self->value));
my($cookie) = join("=",($key||''),join("&",map escape($_||''),$self->value));
return join("; ",$cookie,@constant_values);
}

Expand Down

0 comments on commit fc81db8

Please sign in to comment.