Fix another stupid crash.
This commit is contained in:
1 parent
2e72d6d8ba
commit
7111fa4d4f
2 files changed
+15
-5
No files matched your search
+4
-2
@@ -43,8 +43,10 @@
|
||||
- (void)writeToLog:(NSString *)string {
|
||||
if (self.fileURL) {
|
||||
FILE *f = fopen([[self.fileURL path] fileSystemRepresentation], "a");
|
||||
fprintf(f, "%s %s", [[self currentTime] UTF8String], [string UTF8String]);
|
||||
fclose(f);
|
||||
if (f) {
|
||||
fprintf(f, "%s %s", [[self currentTime] UTF8String], [string UTF8String]);
|
||||
fclose(f);
|
||||
}
|
||||
}
|
||||
|
||||
if (self.delegate) {
|
||||
|
||||
Reference in new issue
Block a user