Revision: 4205
http://skim-app.svn.sourceforge.net/skim-app/?rev=4205&view=rev
Author: amaxwell
Date: 2008-07-13 19:53:19 -0700 (Sun, 13 Jul 2008)
Log Message:
-----------
fix dead store reported by clang
Modified Paths:
--------------
trunk/SkimNotes/skimnotes.m
Modified: trunk/SkimNotes/skimnotes.m
===================================================================
--- trunk/SkimNotes/skimnotes.m 2008-07-13 23:47:31 UTC (rev 4204)
+++ trunk/SkimNotes/skimnotes.m 2008-07-14 02:53:19 UTC (rev 4205)
@@ -221,7 +221,7 @@
success = [data writeToFile:notesPath
options:NSAtomicWrite error:&error];
} else if ([fm fileExistsAtPath:notesPath
isDirectory:&isDir] && isDir == NO) {
success = [fm removeFileAtPath:notesPath handler:nil];
- if (success = NO)
+ if (success == NO)
error = [NSError
errorWithDomain:NSPOSIXErrorDomain code:EACCES userInfo:[NSDictionary
dictionaryWithObjectsAndKeys:@"Unable to remove file",
NSLocalizedDescriptionKey, nil]];
} else {
success = YES;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit