Revision: 14181
          http://sourceforge.net/p/skim-app/code/14181
Author:   hofman
Date:     2024-04-04 22:48:53 +0000 (Thu, 04 Apr 2024)
Log Message:
-----------
don't pass NULL c-string

Modified Paths:
--------------
    trunk/SKSyncTeXParser.m

Modified: trunk/SKSyncTeXParser.m
===================================================================
--- trunk/SKSyncTeXParser.m     2024-04-04 22:46:27 UTC (rev 14180)
+++ trunk/SKSyncTeXParser.m     2024-04-04 22:48:53 UTC (rev 14181)
@@ -61,7 +61,7 @@
 
 - (NSString *)syncFileName {
     const char *fileRep = synctex_scanner_get_synctex(scanner);
-    return [NSString stringWithUTF8String:fileRep];
+    return fileRep ? [NSString stringWithUTF8String:fileRep] : nil;
 }
 
 - (void)enumerateSourceFilesUsingBlock:(void (^)(NSString *file))block {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to