From: <ho...@us...> - 2016-07-17 11:45:35
|
Revision: 9097 http://sourceforge.net/p/skim-app/code/9097 Author: hofman Date: 2016-07-17 11:45:32 +0000 (Sun, 17 Jul 2016) Log Message: ----------- initialize flags to zero Modified Paths: -------------- trunk/SKFileUpdateChecker.m trunk/SKLineWell.m trunk/SKNotesDocument.m Modified: trunk/SKFileUpdateChecker.m =================================================================== --- trunk/SKFileUpdateChecker.m 2016-07-17 10:23:24 UTC (rev 9096) +++ trunk/SKFileUpdateChecker.m 2016-07-17 11:45:32 UTC (rev 9097) @@ -70,6 +70,7 @@ if (self) { document = aDocument; // hidden pref to always auto update without first asking the user + memset(&fucFlags, 0, sizeof(fucFlags)); fucFlags.autoUpdate = [[NSUserDefaults standardUserDefaults] boolForKey:SKAutoReloadFileUpdateKey]; [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self forKey:SKAutoCheckFileUpdateKey context:&SKFileUpdateCheckerObservationContext]; [document addObserver:self forKeyPath:@"fileURL" options:0 context:&SKFileUpdateCheckerObservationContext]; Modified: trunk/SKLineWell.m =================================================================== --- trunk/SKLineWell.m 2016-07-17 10:23:24 UTC (rev 9096) +++ trunk/SKLineWell.m 2016-07-17 11:45:32 UTC (rev 9097) @@ -98,6 +98,8 @@ endLineStyle = kPDFLineStyleNone; lwFlags.displayStyle = SKLineWellDisplayStyleLine; lwFlags.active = 0; + lwFlags.canActivate = 0; + lwFlags.existsActiveLineWell = 0; target = nil; action = NULL; Modified: trunk/SKNotesDocument.m =================================================================== --- trunk/SKNotesDocument.m 2016-07-17 10:23:24 UTC (rev 9096) +++ trunk/SKNotesDocument.m 2016-07-17 11:45:32 UTC (rev 9097) @@ -110,6 +110,7 @@ pdfDocument = nil; rowHeights = [[SKFloatMapTable alloc] init]; windowRect = NSZeroRect; + memset(&ndFlags, 0, sizeof(ndFlags)); ndFlags.caseInsensitiveSearch = [[NSUserDefaults standardUserDefaults] boolForKey:SKCaseInsensitiveNoteSearchKey]; } return self; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |