From e59af814eb4b18036a9b7a89caf7c66c4a1869e2 Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 3 Sep 2013 11:13:14 +0000 Subject: [PATCH] cope wikth nil argument to sweep git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@37035 72102866-910b-0410-8b05-ffd578937521 --- EcCommand.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/EcCommand.m b/EcCommand.m index 004db2f..76b3b34 100644 --- a/EcCommand.m +++ b/EcCommand.m @@ -2124,7 +2124,14 @@ static NSString* cmdWord(NSArray* a, unsigned int pos) NSAutoreleasePool *arp; arp = [NSAutoreleasePool new]; - now = [when timeIntervalSinceReferenceDate]; + if (nil == when) + { + now = [NSDate timeIntervalSinceReferenceDate]; + } + else + { + now = [when timeIntervalSinceReferenceDate]; + } logs = [[self ecUserDirectory] stringByAppendingPathComponent: @"Logs"];