mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-19 01:51:03 +00:00
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:
parent
93c9267913
commit
8b45d10ad8
1 changed files with 8 additions and 1 deletions
|
@ -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"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue