diff --git a/indra/newview/llappdelegate-objc.mm b/indra/newview/llappdelegate-objc.mm
index ad5398721beda9f05621795891b038ebce2824b4..008203fd3215a94c5ff3bad1599a9b93ffc1826e 100644
--- a/indra/newview/llappdelegate-objc.mm
+++ b/indra/newview/llappdelegate-objc.mm
@@ -190,13 +190,15 @@
     return true;
 }
 
+@end
+
 #if defined(LL_BUGSPLAT)
 
 @implementation BugsplatStartupManagerDelegate
 
 - (BugsplatAttachment *)attachmentForBugsplatStartupManager:(BugsplatStartupManager *)bugsplatStartupManager {
     std::string logfile = getLogFilePathname();
-    NSString *ns_logfile = [NSString stringWithCString:logfile->c_str()
+    NSString *ns_logfile = [NSString stringWithCString:logfile.c_str()
                                               encoding:NSUTF8StringEncoding];
     NSData *data = [NSData dataWithContentsOfFile:ns_logfile];
 
@@ -209,6 +211,6 @@
     return attachment;
 }
 
-#endif // LL_BUGSPLAT
-
 @end
+
+#endif // LL_BUGSPLAT