summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-10 07:03:36 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-10 07:03:36 +0000
commit1ce6f065b519284a5ad7135a6db77fcbe1aa778a (patch)
tree79c663a365cc039f46e51658f288538eade86658 /sample
parentef45458e9405c57ab4f59f648c4001ea4df30489 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/from.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sample/from.rb b/sample/from.rb
index bed3433..59cc387 100644
--- a/sample/from.rb
+++ b/sample/from.rb
@@ -50,8 +50,8 @@ end
$outcount = 0;
def fromout(date, from, subj)
return if !date
- y = m = d = 0
y, m, d = parsedate(date) if date
+ y ||= 0; m ||= 0; d ||= 0
if from
from.gsub! /\n/, ""
else