[Lldb-commits] [lldb] r119091 - /lldb/trunk/test/foundation/main.m
Greg Clayton
gclayton at apple.com
Sun Nov 14 15:12:29 PST 2010
Author: gclayton
Date: Sun Nov 14 17:12:29 2010
New Revision: 119091
URL: http://llvm.org/viewvc/llvm-project?rev=119091&view=rev
Log:
Fixed the initWithNSString: function to properly initialize self.
Modified:
lldb/trunk/test/foundation/main.m
Modified: lldb/trunk/test/foundation/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/main.m?rev=119091&r1=119090&r2=119091&view=diff
==============================================================================
--- lldb/trunk/test/foundation/main.m (original)
+++ lldb/trunk/test/foundation/main.m Sun Nov 14 17:12:29 2010
@@ -10,9 +10,11 @@
@implementation MyString
- (id)initWithNSString:(NSString *)string
{
- [super init];
- str = [NSString stringWithString:string];
- date = [NSDate date];
+ if (self = [super init])
+ {
+ str = [NSString stringWithString:string];
+ date = [NSDate date];
+ }
return self;
}
More information about the lldb-commits
mailing list