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
This commit is contained in:
Richard Frith-MacDonald 2013-09-03 11:13:14 +00:00
parent 93c9267913
commit 8b45d10ad8

View file

@ -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"];