Fix a crash caused by an uninitialized variable (bug #219) after highlighting source...
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 2 Mar 2011 05:05:19 +0000 (00:05 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 2 Mar 2011 05:06:45 +0000 (00:06 -0500)
CHANGES
Source/BSSourceView.mm

diff --git a/CHANGES b/CHANGES
index c4d3ab9cc6e0c6084dc4a89e94d025eab5e91111..e5067d4c97c2b80e70679846190b38ec9c83ceb9 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -12,6 +12,7 @@ MacGDBp                                                               CHANGE LOG
 #####################
 - Fix: Objects with nested objects wouldn't always load their child keys
 - Fix: #213  Crash when unchecking "Attached" when the debugger is inactive
+- Fix: #219  Crash when highlighting source fails
 
 
 1.4 Beta 2
index 1335c14e8114dbdb32d20c5fefc892b7326a2317..4042c5d361dc64b79339da9decbd8572b0a95486 100644 (file)
  */
 - (void)setPlainTextStringFromFile:(NSString*)filePath
 {
-  NSError* error;
+  NSError* error = nil;
   NSString* contents = [NSString stringWithContentsOfFile:filePath
                                                  encoding:NSUTF8StringEncoding
                                                     error:&error];