adium 2208:fd4582cb91b7: explode more aggressively
commits at adium.im
commits at adium.im
Sat May 16 23:01:48 UTC 2009
details: http://hg.adium.im/adium/rev/fd4582cb91b7
revision: 2208:fd4582cb91b7
author: David Smith <catfish.man at gmail.com>
date: Sat May 16 16:01:26 2009 -0700
explode more aggressively
diffstat:
Source/AIPreferenceContainer.m | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
diffs (43 lines):
diff -r cbf103d25c8f -r fd4582cb91b7 Source/AIPreferenceContainer.m
--- a/Source/AIPreferenceContainer.m Sat May 16 18:14:59 2009 -0400
+++ b/Source/AIPreferenceContainer.m Sat May 16 16:01:26 2009 -0700
@@ -419,25 +419,26 @@
NSDictionary *immutablePrefsToWrite = [[[NSDictionary alloc] initWithDictionary:inTimer.userInfo copyItems:YES] autorelease];
/* Data verification */
#ifdef PREFERENCE_CONTAINER_DEBUG
- {
- NSData *data = [NSData dataWithContentsOfFile:[adium.loginController.userDirectory stringByAppendingPathComponent:[globalPrefsName stringByAppendingPathExtension:@"plist"]]];
- NSString *errorString = nil;
- NSDictionary *theDict = [NSPropertyListSerialization propertyListFromData:data
- mutabilityOption:NSPropertyListMutableContainers
- format:NULL
- errorDescription:&errorString];
- if (theDict && [theDict count] > 0 && [immutablePrefsToWrite count] == 0)
- {
- NSLog(@"Writing out an empty ByObjectPrefs when we have an existing non-empty one!");
- *((int*)0xdeadbeef) = 42;
- }
- }
+// {
+// NSData *data = [NSData dataWithContentsOfFile:[adium.loginController.userDirectory stringByAppendingPathComponent:[globalPrefsName stringByAppendingPathExtension:@"plist"]]];
+// NSString *errorString = nil;
+// NSDictionary *theDict = [NSPropertyListSerialization propertyListFromData:data
+// mutabilityOption:NSPropertyListMutableContainers
+// format:NULL
+// errorDescription:&errorString];
+// if (theDict && [theDict count] > 0 && [immutablePrefsToWrite count] == 0)
+// {
+// NSLog(@"Writing out an empty ByObjectPrefs when we have an existing non-empty one!");
+// *((int*)0xdeadbeef) = 42;
+// }
+// }
#endif
#warning figure this out
if ([immutablePrefsToWrite count] > 0) {
[immutablePrefsToWrite asyncWriteToPath:adium.loginController.userDirectory withName:globalPrefsName];
} else {
NSLog(@"Attempted to write an empty ByObject Prefs. Uh oh!");
+ *((int*)0xdeadbeef) = 42;
}
if (inTimer == timer_savingOfObjectCache) {
[timer_savingOfObjectCache release]; timer_savingOfObjectCache = nil;
More information about the commits
mailing list