summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cocoa/NetsurfApp.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/cocoa/NetsurfApp.m b/cocoa/NetsurfApp.m
index 8caa9f849..be448c925 100644
--- a/cocoa/NetsurfApp.m
+++ b/cocoa/NetsurfApp.m
@@ -176,8 +176,11 @@ int main( int argc, char **argv )
const char * const messages = [[[NSBundle mainBundle] pathForResource: @"Messages" ofType: @""] UTF8String];
const char * const options = cocoa_get_options_file();
-
- option_ca_bundle = strdup( [[[NSBundle mainBundle] pathForResource: @"ca-bundle" ofType: @""] UTF8String] );
+ const char * const ca_bundle = [[[NSBundle mainBundle] pathForResource: @"ca-bundle" ofType: @""] UTF8String];
+
+ if (ca_bundle != NULL) {
+ option_ca_bundle = strdup(ca_bundle);
+ }
netsurf_init(&argc, &argv, options, messages);