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:57 +0000 (00:06 -0500)
CHANGES
Source/BSSourceView.m

diff --git a/CHANGES b/CHANGES
index e8acfa06f800eb0c5bad5f192ad0bfd1b3b009de..cfed7bed118f04521c0647be893b6ee71369892a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,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 55481eb0eca721226e9c2a0b1d80ff51a5e488f8..2d800d63467d1ff929bf48ef0cf67bf95eab0df0 100644 (file)
  */
 - (void)setPlainTextStringFromFile:(NSString*)filePath
 {
-  NSError* error;
+  NSError* error = nil;
   NSString* contents = [NSString stringWithContentsOfFile:filePath
                                                  encoding:NSUTF8StringEncoding
                                                     error:&error];